Struct google_api_proto::google::storage::v1::InsertBucketRequest
source · pub struct InsertBucketRequest {
pub predefined_acl: i32,
pub predefined_default_object_acl: i32,
pub project: String,
pub projection: i32,
pub bucket: Option<Bucket>,
pub common_request_params: Option<CommonRequestParams>,
}
Expand description
Request message for InsertBucket.
Fields§
§predefined_acl: i32
Apply a predefined set of access controls to this bucket.
predefined_default_object_acl: i32
Apply a predefined set of default object access controls to this bucket.
project: String
Required. A valid API project identifier.
projection: i32
Set of properties to return. Defaults to NO_ACL
, unless the
bucket resource specifies acl
or defaultObjectAcl
properties, when it defaults to FULL
.
bucket: Option<Bucket>
Properties of the new bucket being inserted, including its name.
common_request_params: Option<CommonRequestParams>
A set of parameters common to all Storage API requests.
Implementations§
source§impl InsertBucketRequest
impl InsertBucketRequest
sourcepub fn predefined_acl(&self) -> PredefinedBucketAcl
pub fn predefined_acl(&self) -> PredefinedBucketAcl
Returns the enum value of predefined_acl
, or the default if the field is set to an invalid enum value.
sourcepub fn set_predefined_acl(&mut self, value: PredefinedBucketAcl)
pub fn set_predefined_acl(&mut self, value: PredefinedBucketAcl)
Sets predefined_acl
to the provided enum value.
sourcepub fn predefined_default_object_acl(&self) -> PredefinedObjectAcl
pub fn predefined_default_object_acl(&self) -> PredefinedObjectAcl
Returns the enum value of predefined_default_object_acl
, or the default if the field is set to an invalid enum value.
sourcepub fn set_predefined_default_object_acl(&mut self, value: PredefinedObjectAcl)
pub fn set_predefined_default_object_acl(&mut self, value: PredefinedObjectAcl)
Sets predefined_default_object_acl
to the provided enum value.
sourcepub fn projection(&self) -> Projection
pub fn projection(&self) -> Projection
Returns the enum value of projection
, or the default if the field is set to an invalid enum value.
sourcepub fn set_projection(&mut self, value: Projection)
pub fn set_projection(&mut self, value: Projection)
Sets projection
to the provided enum value.
Trait Implementations§
source§impl Clone for InsertBucketRequest
impl Clone for InsertBucketRequest
source§fn clone(&self) -> InsertBucketRequest
fn clone(&self) -> InsertBucketRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InsertBucketRequest
impl Debug for InsertBucketRequest
source§impl Default for InsertBucketRequest
impl Default for InsertBucketRequest
source§impl Message for InsertBucketRequest
impl Message for InsertBucketRequest
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 InsertBucketRequest
impl PartialEq for InsertBucketRequest
source§fn eq(&self, other: &InsertBucketRequest) -> bool
fn eq(&self, other: &InsertBucketRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InsertBucketRequest
Auto Trait Implementations§
impl Freeze for InsertBucketRequest
impl RefUnwindSafe for InsertBucketRequest
impl Send for InsertBucketRequest
impl Sync for InsertBucketRequest
impl Unpin for InsertBucketRequest
impl UnwindSafe for InsertBucketRequest
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