#[non_exhaustive]pub struct RenameFolderRequest {
pub name: String,
pub destination_folder_id: 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 RenameFolder. 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 source folder being renamed.
Format: projects/{project}/buckets/{bucket}/folders/{folder}
destination_folder_id: StringRequired. The destination folder ID, e.g. foo/bar/.
if_metageneration_match: Option<i64>Makes the operation only succeed conditional on whether the source folder’s current metageneration matches the given value.
if_metageneration_not_match: Option<i64>Makes the operation only succeed conditional on whether the source 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. This request is only
idempotent if a request_id is provided.
Implementations§
Source§impl RenameFolderRequest
impl RenameFolderRequest
pub fn new() -> Self
Sourcepub fn set_destination_folder_id<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_folder_id<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_folder_id.
§Example
let x = RenameFolderRequest::new().set_destination_folder_id("example");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 = RenameFolderRequest::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 = RenameFolderRequest::new().set_or_clear_if_metageneration_match(Some(42));
let x = RenameFolderRequest::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 = RenameFolderRequest::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 = RenameFolderRequest::new().set_or_clear_if_metageneration_not_match(Some(42));
let x = RenameFolderRequest::new().set_or_clear_if_metageneration_not_match(None::<i32>);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 = RenameFolderRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for RenameFolderRequest
impl Clone for RenameFolderRequest
Source§fn clone(&self) -> RenameFolderRequest
fn clone(&self) -> RenameFolderRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenameFolderRequest
impl Debug for RenameFolderRequest
Source§impl Default for RenameFolderRequest
impl Default for RenameFolderRequest
Source§fn default() -> RenameFolderRequest
fn default() -> RenameFolderRequest
Source§impl Message for RenameFolderRequest
impl Message for RenameFolderRequest
Source§impl PartialEq for RenameFolderRequest
impl PartialEq for RenameFolderRequest
impl StructuralPartialEq for RenameFolderRequest
Auto Trait Implementations§
impl Freeze for RenameFolderRequest
impl RefUnwindSafe for RenameFolderRequest
impl Send for RenameFolderRequest
impl Sync for RenameFolderRequest
impl Unpin for RenameFolderRequest
impl UnwindSafe for RenameFolderRequest
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