pub struct State(/* private fields */);Expand description
The various possible states for an ongoing Operation.
Implementations§
Source§impl State
impl State
Sourcepub const STATE_UNSPECIFIED: State
pub const STATE_UNSPECIFIED: State
Unspecified.
Sourcepub const INITIALIZING: State
pub const INITIALIZING: State
Request is being prepared for processing.
Sourcepub const PROCESSING: State
pub const PROCESSING: State
Request is actively being processed.
Sourcepub const CANCELLING: State
pub const CANCELLING: State
Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.
Sourcepub const FINALIZING: State
pub const FINALIZING: State
Request has been processed and is in its finalization stage.
Sourcepub const SUCCESSFUL: State
pub const SUCCESSFUL: State
Request has completed successfully.
Sourcepub const CANCELLED: State
pub const CANCELLED: State
Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more