#[non_exhaustive]pub struct Autoclass {
pub enabled: bool,
pub toggle_time: Option<Timestamp>,
pub terminal_storage_class: Option<String>,
pub terminal_storage_class_update_time: Option<Timestamp>,
/* private fields */
}Expand description
Configuration for a bucket’s Autoclass feature.
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.enabled: boolOptional. Enables Autoclass.
toggle_time: Option<Timestamp>Output only. Latest instant at which the enabled field was set to true
after being disabled/unconfigured or set to false after being enabled. If
Autoclass is enabled when the bucket is created, the toggle_time is set
to the bucket creation time.
terminal_storage_class: Option<String>An object in an Autoclass bucket will eventually cool down to the terminal storage class if there is no access to the object. The only valid values are NEARLINE and ARCHIVE.
terminal_storage_class_update_time: Option<Timestamp>Output only. Latest instant at which the autoclass terminal storage class was updated.
Implementations§
Source§impl Autoclass
impl Autoclass
pub fn new() -> Self
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_toggle_time<T>(self, v: T) -> Self
pub fn set_toggle_time<T>(self, v: T) -> Self
Sets the value of toggle_time.
Sourcepub fn set_or_clear_toggle_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_toggle_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of toggle_time.
Sourcepub fn set_terminal_storage_class<T>(self, v: T) -> Self
pub fn set_terminal_storage_class<T>(self, v: T) -> Self
Sets the value of terminal_storage_class.
Sourcepub fn set_or_clear_terminal_storage_class<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_terminal_storage_class<T>(self, v: Option<T>) -> Self
Sets or clears the value of terminal_storage_class.
Sourcepub fn set_terminal_storage_class_update_time<T>(self, v: T) -> Self
pub fn set_terminal_storage_class_update_time<T>(self, v: T) -> Self
Sets the value of terminal_storage_class_update_time.
Sourcepub fn set_or_clear_terminal_storage_class_update_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_terminal_storage_class_update_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of terminal_storage_class_update_time.
Trait Implementations§
impl StructuralPartialEq for Autoclass
Auto Trait Implementations§
impl Freeze for Autoclass
impl RefUnwindSafe for Autoclass
impl Send for Autoclass
impl Sync for Autoclass
impl Unpin for Autoclass
impl UnwindSafe for Autoclass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request