#[non_exhaustive]pub struct MoveFolderRequest {
pub name: String,
pub destination_containing_folder: Option<String>,
/* private fields */
}Expand description
MoveFolder request message.
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: StringRequired. The full resource name of the Folder to move.
destination_containing_folder: Option<String>Optional. The name of the Folder, TeamFolder, or root location to move the
Folder to. Can be in the format of: “” to move into the root User folder,
projects/*/locations/*/folders/*, projects/*/locations/*/teamFolders/*
Implementations§
Source§impl MoveFolderRequest
impl MoveFolderRequest
Sourcepub fn set_destination_containing_folder<T>(self, v: T) -> Self
pub fn set_destination_containing_folder<T>(self, v: T) -> Self
Sets the value of destination_containing_folder.
§Example
ⓘ
let x = MoveFolderRequest::new().set_destination_containing_folder("example");Sourcepub fn set_or_clear_destination_containing_folder<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_destination_containing_folder<T>(self, v: Option<T>) -> Self
Sets or clears the value of destination_containing_folder.
§Example
ⓘ
let x = MoveFolderRequest::new().set_or_clear_destination_containing_folder(Some("example"));
let x = MoveFolderRequest::new().set_or_clear_destination_containing_folder(None::<String>);Trait Implementations§
Source§impl Clone for MoveFolderRequest
impl Clone for MoveFolderRequest
Source§fn clone(&self) -> MoveFolderRequest
fn clone(&self) -> MoveFolderRequest
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 MoveFolderRequest
impl Debug for MoveFolderRequest
Source§impl Default for MoveFolderRequest
impl Default for MoveFolderRequest
Source§fn default() -> MoveFolderRequest
fn default() -> MoveFolderRequest
Returns the “default value” for a type. Read more
Source§impl Message for MoveFolderRequest
impl Message for MoveFolderRequest
Source§impl PartialEq for MoveFolderRequest
impl PartialEq for MoveFolderRequest
impl StructuralPartialEq for MoveFolderRequest
Auto Trait Implementations§
impl Freeze for MoveFolderRequest
impl RefUnwindSafe for MoveFolderRequest
impl Send for MoveFolderRequest
impl Sync for MoveFolderRequest
impl Unpin for MoveFolderRequest
impl UnsafeUnpin for MoveFolderRequest
impl UnwindSafe for MoveFolderRequest
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