#[non_exhaustive]pub struct DeleteFolderRequest {
pub name: String,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub request_id: String,
/* private fields */
}Expand description
Request message for DeleteFolder. This operation is only applicable to 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: StringRequired. Name of the folder.
Format: projects/{project}/buckets/{bucket}/folders/{folder}
if_metageneration_match: Option<i64>Makes the operation only succeed conditional on whether the folder’s current metageneration matches the given value.
if_metageneration_not_match: Option<i64>Makes the operation only succeed conditional on whether the folder’s current metageneration does not match the given value.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl DeleteFolderRequest
impl DeleteFolderRequest
pub fn new() -> Self
Sourcepub fn set_if_metageneration_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_match.
Sourcepub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_match.
Sourcepub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
pub fn set_if_metageneration_not_match<T>(self, v: T) -> Self
Sets the value of if_metageneration_not_match.
Sourcepub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_if_metageneration_not_match<T>(self, v: Option<T>) -> Self
Sets or clears the value of if_metageneration_not_match.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for DeleteFolderRequest
impl Clone for DeleteFolderRequest
Source§fn clone(&self) -> DeleteFolderRequest
fn clone(&self) -> DeleteFolderRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeleteFolderRequest
impl Debug for DeleteFolderRequest
Source§impl Default for DeleteFolderRequest
impl Default for DeleteFolderRequest
Source§fn default() -> DeleteFolderRequest
fn default() -> DeleteFolderRequest
Source§impl Message for DeleteFolderRequest
impl Message for DeleteFolderRequest
Source§impl PartialEq for DeleteFolderRequest
impl PartialEq for DeleteFolderRequest
impl StructuralPartialEq for DeleteFolderRequest
Auto Trait Implementations§
impl Freeze for DeleteFolderRequest
impl RefUnwindSafe for DeleteFolderRequest
impl Send for DeleteFolderRequest
impl Sync for DeleteFolderRequest
impl Unpin for DeleteFolderRequest
impl UnwindSafe for DeleteFolderRequest
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