Struct google_api_proto::google::storage::v2::ObjectAccessControl
source · pub struct ObjectAccessControl {
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 ObjectAccessControl. If included in the metadata of an update or delete request message, the operation will only be performed if the etag matches that of the live object’s ObjectAccessControl.
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 ObjectAccessControl
impl Clone for ObjectAccessControl
source§fn clone(&self) -> ObjectAccessControl
fn clone(&self) -> ObjectAccessControl
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 ObjectAccessControl
impl Debug for ObjectAccessControl
source§impl Default for ObjectAccessControl
impl Default for ObjectAccessControl
source§impl Message for ObjectAccessControl
impl Message for ObjectAccessControl
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 ObjectAccessControl
impl PartialEq for ObjectAccessControl
source§fn eq(&self, other: &ObjectAccessControl) -> bool
fn eq(&self, other: &ObjectAccessControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ObjectAccessControl
Auto Trait Implementations§
impl Freeze for ObjectAccessControl
impl RefUnwindSafe for ObjectAccessControl
impl Send for ObjectAccessControl
impl Sync for ObjectAccessControl
impl Unpin for ObjectAccessControl
impl UnwindSafe for ObjectAccessControl
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