#[non_exhaustive]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>,
/* 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.
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.comFor project entities,project-{team}-{projectnumber}format is returned on response.
entity_alt: StringOutput only. The alternative entity format, if exists. For project
entities, project-{team}-{projectid} format is returned in the response.
entity_id: StringOptional. The ID for the entity, if any.
etag: StringOptional. The etag of the BucketAccessControl.
If included in the metadata of an update or delete request message, the
operation operation is only performed if the etag matches that of the
bucket’s BucketAccessControl.
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 BucketAccessControl
impl BucketAccessControl
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 BucketAccessControl
impl Clone for BucketAccessControl
Source§fn clone(&self) -> BucketAccessControl
fn clone(&self) -> BucketAccessControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BucketAccessControl
impl Debug for BucketAccessControl
Source§impl Default for BucketAccessControl
impl Default for BucketAccessControl
Source§fn default() -> BucketAccessControl
fn default() -> BucketAccessControl
Source§impl Message for BucketAccessControl
impl Message for BucketAccessControl
Source§impl PartialEq for BucketAccessControl
impl PartialEq for BucketAccessControl
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
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