Enum cloud_storage::default_object_access_control::Entity [−][src]
pub enum Entity {
UserId(String),
UserEmail(String),
GroupId(String),
GroupEmail(String),
Domain(String),
Project(Team, String),
AllUsers,
AllAuthenticatedUsers,
}Expand description
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.
All users within a project, identified by the team name and project id.
All users.
All users that are logged in.
Trait Implementations
impl<'de> Deserialize<'de> for Entity[src]
impl<'de> Deserialize<'de> for Entity[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,