#[non_exhaustive]pub struct StateMetadata {
pub state: State,
pub effective_time: Option<Timestamp>,
/* private fields */
}Expand description
The state and activation time details of the resource state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: StateOutput only. The state of the resource.
effective_time: Option<Timestamp>Output only. Accompanies only the transient states, which include
ADDING, DELETING, and SUSPENDING, to denote the time until which
the transient state of the resource will be effective. For instance, if
the state is ADDING, this field shows the time when the resource state
transitions to ACTIVE.
Implementations§
Source§impl StateMetadata
impl StateMetadata
pub fn new() -> Self
Sourcepub fn set_effective_time<T>(self, v: T) -> Self
pub fn set_effective_time<T>(self, v: T) -> Self
Sets the value of effective_time.
Sourcepub fn set_or_clear_effective_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_effective_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of effective_time.
Trait Implementations§
Source§impl Clone for StateMetadata
impl Clone for StateMetadata
Source§fn clone(&self) -> StateMetadata
fn clone(&self) -> StateMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateMetadata
impl Debug for StateMetadata
Source§impl Default for StateMetadata
impl Default for StateMetadata
Source§fn default() -> StateMetadata
fn default() -> StateMetadata
Returns the “default value” for a type. Read more
Source§impl Message for StateMetadata
impl Message for StateMetadata
Source§impl PartialEq for StateMetadata
impl PartialEq for StateMetadata
impl StructuralPartialEq for StateMetadata
Auto Trait Implementations§
impl Freeze for StateMetadata
impl RefUnwindSafe for StateMetadata
impl Send for StateMetadata
impl Sync for StateMetadata
impl Unpin for StateMetadata
impl UnwindSafe for StateMetadata
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