#[non_exhaustive]pub struct CreateFolderRequest {
pub parent: String,
pub folder: Option<Folder>,
pub folder_id: String,
pub recursive: bool,
pub request_id: String,
/* private fields */
}Expand description
Request message for CreateFolder. 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.parent: StringRequired. Name of the bucket in which the folder will reside. The bucket must be a hierarchical namespace enabled bucket.
folder: Option<Folder>Required. Properties of the new folder being created.
The bucket and name of the folder are specified in the parent and folder_id
fields, respectively. Populating those fields in folder will result in an
error.
folder_id: StringRequired. The full name of a folder, including all its parent folders. Folders use single ‘/’ characters as a delimiter. The folder_id must end with a slash. For example, the folder_id of “books/biographies/” would create a new “biographies/” folder under the “books/” folder.
recursive: boolOptional. If true, parent folder doesn’t have to be present and all missing ancestor folders will be created atomically.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl CreateFolderRequest
impl CreateFolderRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_folder<T>(self, v: T) -> Self
pub fn set_folder<T>(self, v: T) -> Self
Sets the value of folder.
Sourcepub fn set_or_clear_folder<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_folder<T>(self, v: Option<T>) -> Self
Sets or clears the value of folder.
Sourcepub fn set_folder_id<T: Into<String>>(self, v: T) -> Self
pub fn set_folder_id<T: Into<String>>(self, v: T) -> Self
Sets the value of folder_id.
Sourcepub fn set_recursive<T: Into<bool>>(self, v: T) -> Self
pub fn set_recursive<T: Into<bool>>(self, v: T) -> Self
Sets the value of recursive.
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 CreateFolderRequest
impl Clone for CreateFolderRequest
Source§fn clone(&self) -> CreateFolderRequest
fn clone(&self) -> CreateFolderRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateFolderRequest
impl Debug for CreateFolderRequest
Source§impl Default for CreateFolderRequest
impl Default for CreateFolderRequest
Source§fn default() -> CreateFolderRequest
fn default() -> CreateFolderRequest
Source§impl Message for CreateFolderRequest
impl Message for CreateFolderRequest
Source§impl PartialEq for CreateFolderRequest
impl PartialEq for CreateFolderRequest
impl StructuralPartialEq for CreateFolderRequest
Auto Trait Implementations§
impl Freeze for CreateFolderRequest
impl RefUnwindSafe for CreateFolderRequest
impl Send for CreateFolderRequest
impl Sync for CreateFolderRequest
impl Unpin for CreateFolderRequest
impl UnwindSafe for CreateFolderRequest
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