pub struct State(/* private fields */);Expand description
The possible set of states of an index.
Implementations§
Source§impl State
impl State
Sourcepub const STATE_UNSPECIFIED: State
pub const STATE_UNSPECIFIED: State
The state is unspecified.
Sourcepub const CREATING: State
pub const CREATING: State
The index is being created, and cannot be used by queries. There is an active long-running operation for the index. The index is updated when writing an entity. Some index data may exist.
Sourcepub const READY: State
pub const READY: State
The index is ready to be used. The index is updated when writing an entity. The index is fully populated from all stored entities it applies to.
Sourcepub const DELETING: State
pub const DELETING: State
The index is being deleted, and cannot be used by queries. There is an active long-running operation for the index. The index is not updated when writing an entity. Some index data may exist.
Sourcepub const ERROR: State
pub const ERROR: State
The index was being created or deleted, but something went wrong. The index cannot by used by queries. There is no active long-running operation for the index, and the most recently finished long-running operation failed. The index is not updated when writing an entity. Some index data may exist.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.