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: StringThe access permission for the entity.
id: StringThe ID of the access-control entry.
entity: StringThe 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}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. For project entities,project-{team}-{projectnumber}format will be returned on response.
entity_alt: StringOutput only. The alternative entity format, if exists. For project
entities, project-{team}-{projectid} format will be returned on response.
entity_id: StringThe ID for the entity, if any.
etag: StringThe 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: 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 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