Struct cloud_storage::object_access_control::NewObjectAccessControl[][src]

pub struct NewObjectAccessControl {
    pub entity: Entity,
    pub role: Role,
}

Used to create a new ObjectAccessControl object.

Fields

entity: Entity

The entity holding the permission, in one of the following forms:

user-userId user-email group-groupId group-email domain-domain project-team-projectId allUsers allAuthenticatedUsers

Examples:

The user liz@example.com would be user-liz@example.com. The group example@googlegroups.com would be group-example@googlegroups.com. To refer to all members of the G Suite for Business domain example.com, the entity would be domain-example.com.

role: Role

The access permission for the entity.

Trait Implementations

impl Debug for NewObjectAccessControl[src]

impl PartialEq<NewObjectAccessControl> for NewObjectAccessControl[src]

impl Serialize for NewObjectAccessControl[src]

impl StructuralPartialEq for NewObjectAccessControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.