Struct google_api_proto::google::storage::v2::BucketAccessControl
source · pub struct BucketAccessControl {
pub role: String,
pub id: String,
pub entity: String,
pub entity_alt: String,
pub entity_id: String,
pub etag: String,
pub email: String,
pub domain: String,
pub project_team: Option<ProjectTeam>,
}
Expand description
An access-control entry.
Fields§
§role: String
The access permission for the entity.
id: String
The ID of the access-control entry.
entity: String
The entity holding the permission, in one of the following forms:
user-{userid}
user-{email}
group-{groupid}
group-{email}
domain-{domain}
project-{team}-{projectnumber}
project-{team}-{projectid}
allUsers
allAuthenticatedUsers
Examples:- The user
liz@example.com
would beuser-liz@example.com
. - The group
example@googlegroups.com
would begroup-example@googlegroups.com
- All members of the Google Apps for Business domain
example.com
would bedomain-example.com
For project entities,project-{team}-{projectnumber}
format will be returned on response.
entity_alt: String
Output only. The alternative entity format, if exists. For project
entities, project-{team}-{projectid}
format will be returned on response.
entity_id: String
The ID for the entity, if any.
etag: String
The etag of the BucketAccessControl. If included in the metadata of an update or delete request message, the operation operation will only be performed if the etag matches that of the bucket’s BucketAccessControl.
email: String
The email address associated with the entity, if any.
domain: String
The 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