#[non_exhaustive]pub struct Folder {
pub name: String,
pub metageneration: i64,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub pending_rename_info: Option<PendingRenameInfo>,
/* private fields */
}Expand description
A folder resource. This resource can only exist in a hierarchical namespace enabled bucket.
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.name: StringIdentifier. The name of this folder.
Format: projects/{project}/buckets/{bucket}/folders/{folder}
metageneration: i64Output only. The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
create_time: Option<Timestamp>Output only. The creation time of the folder.
update_time: Option<Timestamp>Output only. The modification time of the folder.
pending_rename_info: Option<PendingRenameInfo>Output only. Only present if the folder is part of an ongoing RenameFolder operation. Contains information which can be used to query the operation status. The presence of this field also indicates all write operations are blocked for this folder, including folder, managed folder, and object operations.
Implementations§
Source§impl Folder
impl Folder
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.
Sourcepub fn set_pending_rename_info<T>(self, v: T) -> Selfwhere
T: Into<PendingRenameInfo>,
pub fn set_pending_rename_info<T>(self, v: T) -> Selfwhere
T: Into<PendingRenameInfo>,
Sets the value of pending_rename_info.
Sourcepub fn set_or_clear_pending_rename_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<PendingRenameInfo>,
pub fn set_or_clear_pending_rename_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<PendingRenameInfo>,
Sets or clears the value of pending_rename_info.
Trait Implementations§
impl StructuralPartialEq for Folder
Auto Trait Implementations§
impl Freeze for Folder
impl RefUnwindSafe for Folder
impl Send for Folder
impl Sync for Folder
impl Unpin for Folder
impl UnwindSafe for Folder
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