Struct google_api_proto::google::storage::v1::BucketAccessControl
source · pub struct BucketAccessControl {
pub role: String,
pub etag: String,
pub id: String,
pub bucket: String,
pub entity: String,
pub entity_id: String,
pub email: String,
pub domain: String,
pub project_team: Option<ProjectTeam>,
}Expand description
An access-control entry.
Fields§
§role: StringThe access permission for the entity.
etag: StringHTTP 1.1 [“https://tools.ietf.org/html/rfc7232#section-2.3][Entity tag] for the access-control entry.
id: StringThe ID of the access-control entry.
bucket: StringThe name of the bucket.
entity: StringThe entity holding the permission, in one of the following forms:
user-{userid}user-{email}group-{groupid}group-{email}domain-{domain}project-{team-projectid}allUsersallAuthenticatedUsersExamples:- The user
liz@example.comwould beuser-liz@example.com. - The group
example@googlegroups.comwould begroup-example@googlegroups.com - All members of the Google Apps for Business domain
example.comwould bedomain-example.com
entity_id: StringThe ID for the entity, if any.
email: StringThe email address associated with the entity, if any.
domain: StringThe domain associated with the entity, if any.
project_team: Option<ProjectTeam>The project team associated with the entity, if any.
Trait Implementations§
source§impl Clone for BucketAccessControl
impl Clone for BucketAccessControl
source§fn clone(&self) -> BucketAccessControl
fn clone(&self) -> BucketAccessControl
Returns a copy 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 BucketAccessControl
impl Debug for BucketAccessControl
source§impl Default for BucketAccessControl
impl Default for BucketAccessControl
source§impl Message for BucketAccessControl
impl Message for BucketAccessControl
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.source§impl PartialEq for BucketAccessControl
impl PartialEq for BucketAccessControl
source§fn eq(&self, other: &BucketAccessControl) -> bool
fn eq(&self, other: &BucketAccessControl) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BucketAccessControl
Auto Trait Implementations§
impl Freeze for BucketAccessControl
impl RefUnwindSafe for BucketAccessControl
impl Send for BucketAccessControl
impl Sync for BucketAccessControl
impl Unpin for BucketAccessControl
impl UnwindSafe for BucketAccessControl
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
§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>
Wrap the input message
T in a tonic::Request