[][src]Enum cloud_storage::object_access_control::Entity

pub enum Entity {
    UserId(String),
    UserEmail(String),
    GroupId(String),
    GroupEmail(String),
    Domain(String),
    Project(Team, String),
    AllUsers,
    AllAuthenticatedUsers,
}

An entity is used to represent a user or group of users that often have some kind of permission.

Variants

UserId(String)

A single user, identified by its id.

UserEmail(String)

A single user, identified by its email address.

GroupId(String)

A group of users, identified by its id.

GroupEmail(String)

A group of users, identified by its email address.

Domain(String)

All users identifed by an email that ends with the domain, for example mydomain.rs in me@mydomain.rs.

Project(Team, String)

All users within a project, identified by the team name and project id.

AllUsers

All users.

AllAuthenticatedUsers

All users that are logged in.

Trait Implementations

impl Clone for Entity[src]

impl Debug for Entity[src]

impl<'de> Deserialize<'de> for Entity[src]

impl Display for Entity[src]

impl PartialEq<Entity> for Entity[src]

impl Serialize for Entity[src]

impl StructuralPartialEq for Entity[src]

Auto Trait Implementations

impl RefUnwindSafe for Entity

impl Send for Entity

impl Sync for Entity

impl Unpin for Entity

impl UnwindSafe for Entity

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.