IndexStateCode
This enum represents the build state of an index, as returned in each IndexDesc.
pub enum IndexStateCode {
None,
Unissued,
InProgress,
Finished,
Failed,
Retry,
}
VARIANTS:
NoneNo index has been created for the field. This is the default.
UnissuedThe index build task has been created but has not started running.
InProgressThe index build is currently in progress.
FinishedThe index build has completed successfully.
FailedThe index build failed.
RetryThe index build failed but will be retried.
Example
for desc in resp.indexes() {
if desc.get_state() == IndexStateCode::Finished {
println!("index {} is ready", desc.get_index_name());
}
}