#[non_exhaustive]pub struct ManagedFolder {
pub name: String,
pub metageneration: i64,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
/* private fields */
}Expand description
A managed folder.
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.name: StringIdentifier. The name of this managed folder.
Format:
projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}
metageneration: i64Output only. The metadata version of this managed folder. It increases whenever the metadata is updated. Used for preconditions and for detecting changes in metadata. Managed folders don’t have a generation number.
create_time: Option<Timestamp>Output only. The creation time of the managed folder.
update_time: Option<Timestamp>Output only. The modification time of the managed folder.
Implementations§
Source§impl ManagedFolder
impl ManagedFolder
pub fn new() -> Self
Sourcepub fn set_metageneration<T: Into<i64>>(self, v: T) -> Self
pub fn set_metageneration<T: Into<i64>>(self, v: T) -> Self
Sets the value of metageneration.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Trait Implementations§
Source§impl Clone for ManagedFolder
impl Clone for ManagedFolder
Source§fn clone(&self) -> ManagedFolder
fn clone(&self) -> ManagedFolder
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 ManagedFolder
impl Debug for ManagedFolder
Source§impl Default for ManagedFolder
impl Default for ManagedFolder
Source§fn default() -> ManagedFolder
fn default() -> ManagedFolder
Returns the “default value” for a type. Read more
Source§impl Message for ManagedFolder
impl Message for ManagedFolder
Source§impl PartialEq for ManagedFolder
impl PartialEq for ManagedFolder
impl StructuralPartialEq for ManagedFolder
Auto Trait Implementations§
impl Freeze for ManagedFolder
impl RefUnwindSafe for ManagedFolder
impl Send for ManagedFolder
impl Sync for ManagedFolder
impl Unpin for ManagedFolder
impl UnwindSafe for ManagedFolder
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
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>
Wrap the input message
T in a tonic::Request