#[non_exhaustive]pub struct CreateManagedFolderRequest {
pub parent: String,
pub managed_folder: Option<ManagedFolder>,
pub managed_folder_id: String,
pub request_id: String,
/* private fields */
}Expand description
Request message for CreateManagedFolder.
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.parent: StringRequired. Name of the bucket this managed folder belongs to.
managed_folder: Option<ManagedFolder>Required. Properties of the managed folder being created.
The bucket and managed folder names are specified in the parent and
managed_folder_id fields. Populating these fields in managed_folder
will result in an error.
managed_folder_id: StringRequired. The name of the managed folder. It uses a single / as delimiter
and leading and trailing / are allowed.
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl CreateManagedFolderRequest
impl CreateManagedFolderRequest
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
Sourcepub fn set_managed_folder<T>(self, v: T) -> Selfwhere
T: Into<ManagedFolder>,
pub fn set_managed_folder<T>(self, v: T) -> Selfwhere
T: Into<ManagedFolder>,
Sets the value of managed_folder.
§Example
ⓘ
use google_cloud_storage::model::ManagedFolder;
let x = CreateManagedFolderRequest::new().set_managed_folder(ManagedFolder::default()/* use setters */);Sourcepub fn set_or_clear_managed_folder<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedFolder>,
pub fn set_or_clear_managed_folder<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedFolder>,
Sets or clears the value of managed_folder.
§Example
ⓘ
use google_cloud_storage::model::ManagedFolder;
let x = CreateManagedFolderRequest::new().set_or_clear_managed_folder(Some(ManagedFolder::default()/* use setters */));
let x = CreateManagedFolderRequest::new().set_or_clear_managed_folder(None::<ManagedFolder>);Sourcepub fn set_managed_folder_id<T: Into<String>>(self, v: T) -> Self
pub fn set_managed_folder_id<T: Into<String>>(self, v: T) -> Self
Sets the value of managed_folder_id.
§Example
ⓘ
let x = CreateManagedFolderRequest::new().set_managed_folder_id("example");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 = CreateManagedFolderRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for CreateManagedFolderRequest
impl Clone for CreateManagedFolderRequest
Source§fn clone(&self) -> CreateManagedFolderRequest
fn clone(&self) -> CreateManagedFolderRequest
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 CreateManagedFolderRequest
impl Debug for CreateManagedFolderRequest
Source§impl Default for CreateManagedFolderRequest
impl Default for CreateManagedFolderRequest
Source§fn default() -> CreateManagedFolderRequest
fn default() -> CreateManagedFolderRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateManagedFolderRequest
impl Message for CreateManagedFolderRequest
impl StructuralPartialEq for CreateManagedFolderRequest
Auto Trait Implementations§
impl Freeze for CreateManagedFolderRequest
impl RefUnwindSafe for CreateManagedFolderRequest
impl Send for CreateManagedFolderRequest
impl Sync for CreateManagedFolderRequest
impl Unpin for CreateManagedFolderRequest
impl UnwindSafe for CreateManagedFolderRequest
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
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>
Wrap the input message
T in a tonic::Request