#[non_exhaustive]pub struct FreeInstanceMetadata {
pub expire_time: Option<Timestamp>,
pub upgrade_time: Option<Timestamp>,
pub expire_behavior: ExpireBehavior,
/* private fields */
}
Expand description
Free instance specific metadata that is kept even after an instance has been upgraded for tracking purposes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.expire_time: Option<Timestamp>
Output only. Timestamp after which the instance will either be upgraded or scheduled for deletion after a grace period. ExpireBehavior is used to choose between upgrading or scheduling the free instance for deletion. This timestamp is set during the creation of a free instance.
upgrade_time: Option<Timestamp>
Output only. If present, the timestamp at which the free instance was upgraded to a provisioned instance.
expire_behavior: ExpireBehavior
Specifies the expiration behavior of a free instance. The default of
ExpireBehavior is REMOVE_AFTER_GRACE_PERIOD
. This can be modified during
or after creation, and before expiration.
Implementations§
Source§impl FreeInstanceMetadata
impl FreeInstanceMetadata
pub fn new() -> Self
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Sourcepub fn set_upgrade_time<T>(self, v: T) -> Self
pub fn set_upgrade_time<T>(self, v: T) -> Self
Sets the value of upgrade_time.
Sourcepub fn set_or_clear_upgrade_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_upgrade_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of upgrade_time.
Sourcepub fn set_expire_behavior<T: Into<ExpireBehavior>>(self, v: T) -> Self
pub fn set_expire_behavior<T: Into<ExpireBehavior>>(self, v: T) -> Self
Sets the value of expire_behavior.
Trait Implementations§
Source§impl Clone for FreeInstanceMetadata
impl Clone for FreeInstanceMetadata
Source§fn clone(&self) -> FreeInstanceMetadata
fn clone(&self) -> FreeInstanceMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more