Struct google_api_proto::google::storage::control::v2::CreateFolderRequest
source · pub struct CreateFolderRequest {
pub parent: String,
pub folder: Option<Folder>,
pub folder_id: String,
pub recursive: bool,
pub request_id: String,
}
Expand description
Request message for CreateFolder. This operation is only applicable to a hierarchical namespace enabled bucket.
Fields§
§parent: String
Required. 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: String
Required. 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: bool
Optional. If true, parent folder doesn’t have to be present and all missing ancestor folders will be created atomically.
request_id: String
Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
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§impl Message for CreateFolderRequest
impl Message for CreateFolderRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CreateFolderRequest
impl PartialEq for CreateFolderRequest
source§fn eq(&self, other: &CreateFolderRequest) -> bool
fn eq(&self, other: &CreateFolderRequest) -> bool
self
and other
values to be equal, and is used
by ==
.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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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