#[non_exhaustive]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>,
/* private fields */
}Expand description
An access-control entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.role: StringOptional. The access permission for the entity. One of the following values:
READERWRITEROWNER
id: StringOptional. The ID of the access-control entry.
entity: StringOptional. 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}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: StringOptional. The ID for the entity, if any.
etag: StringOptional. 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: StringOptional. The email address associated with the entity, if any.
domain: StringOptional. The domain associated with the entity, if any.
project_team: Option<ProjectTeam>Optional. The project team associated with the entity, if any.
Implementations§
Source§impl ObjectAccessControl
impl ObjectAccessControl
pub fn new() -> Self
Sourcepub fn set_entity<T: Into<String>>(self, v: T) -> Self
pub fn set_entity<T: Into<String>>(self, v: T) -> Self
Sets the value of entity.
Sourcepub fn set_entity_alt<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_alt<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_alt.
Sourcepub fn set_entity_id<T: Into<String>>(self, v: T) -> Self
pub fn set_entity_id<T: Into<String>>(self, v: T) -> Self
Sets the value of entity_id.
Sourcepub fn set_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of domain.
Sourcepub fn set_project_team<T>(self, v: T) -> Selfwhere
T: Into<ProjectTeam>,
pub fn set_project_team<T>(self, v: T) -> Selfwhere
T: Into<ProjectTeam>,
Sets the value of project_team.
Sourcepub fn set_or_clear_project_team<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProjectTeam>,
pub fn set_or_clear_project_team<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProjectTeam>,
Sets or clears the value of project_team.
Trait Implementations§
Source§impl Clone for ObjectAccessControl
impl Clone for ObjectAccessControl
Source§fn clone(&self) -> ObjectAccessControl
fn clone(&self) -> ObjectAccessControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectAccessControl
impl Debug for ObjectAccessControl
Source§impl Default for ObjectAccessControl
impl Default for ObjectAccessControl
Source§fn default() -> ObjectAccessControl
fn default() -> ObjectAccessControl
Source§impl Message for ObjectAccessControl
impl Message for ObjectAccessControl
Source§impl PartialEq for ObjectAccessControl
impl PartialEq for ObjectAccessControl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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