#[non_exhaustive]pub struct DeleteManagedFolderRequest {
pub name: String,
pub if_metageneration_match: Option<i64>,
pub if_metageneration_not_match: Option<i64>,
pub allow_non_empty: bool,
pub request_id: String,
/* private fields */
}Expand description
DeleteManagedFolder RPC request message.
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 managed folder.
Format:
projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}
if_metageneration_match: Option<i64>The operation succeeds conditional on the managed folder’s current metageneration matching the value here specified.
if_metageneration_not_match: Option<i64>The operation succeeds conditional on the managed folder’s current metageneration NOT matching the value here specified.
allow_non_empty: boolAllows deletion of a managed folder even if it is not empty. A managed folder is empty if it manages no child managed folders or objects. Caller must have permission for storage.managedFolders.setIamPolicy.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl DeleteManagedFolderRequest
impl DeleteManagedFolderRequest
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.
§Example
let x = DeleteManagedFolderRequest::new().set_if_metageneration_match(42);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.
§Example
let x = DeleteManagedFolderRequest::new().set_or_clear_if_metageneration_match(Some(42));
let x = DeleteManagedFolderRequest::new().set_or_clear_if_metageneration_match(None::<i32>);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.
§Example
let x = DeleteManagedFolderRequest::new().set_if_metageneration_not_match(42);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.
§Example
let x = DeleteManagedFolderRequest::new().set_or_clear_if_metageneration_not_match(Some(42));
let x = DeleteManagedFolderRequest::new().set_or_clear_if_metageneration_not_match(None::<i32>);Sourcepub fn set_allow_non_empty<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_non_empty<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_non_empty.
§Example
let x = DeleteManagedFolderRequest::new().set_allow_non_empty(true);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.
§Example
let x = DeleteManagedFolderRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for DeleteManagedFolderRequest
impl Clone for DeleteManagedFolderRequest
Source§fn clone(&self) -> DeleteManagedFolderRequest
fn clone(&self) -> DeleteManagedFolderRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeleteManagedFolderRequest
impl Debug for DeleteManagedFolderRequest
Source§impl Default for DeleteManagedFolderRequest
impl Default for DeleteManagedFolderRequest
Source§fn default() -> DeleteManagedFolderRequest
fn default() -> DeleteManagedFolderRequest
Source§impl Message for DeleteManagedFolderRequest
impl Message for DeleteManagedFolderRequest
impl StructuralPartialEq for DeleteManagedFolderRequest
Auto Trait Implementations§
impl Freeze for DeleteManagedFolderRequest
impl RefUnwindSafe for DeleteManagedFolderRequest
impl Send for DeleteManagedFolderRequest
impl Sync for DeleteManagedFolderRequest
impl Unpin for DeleteManagedFolderRequest
impl UnwindSafe for DeleteManagedFolderRequest
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