[][src]Enum carapax::access::PrincipalUser

pub enum PrincipalUser {
    Id(Integer),
    Username(String),
}

Represents a user

Variants

Id(Integer)

Accepts updates only from a user with specified ID

Username(String)

Accepts updates only from a user with specified @username

Trait Implementations

impl From<PrincipalUser> for Principal[src]

impl From<i64> for PrincipalUser[src]

impl From<String> for PrincipalUser[src]

impl<'a> From<&'a str> for PrincipalUser[src]

impl Debug for PrincipalUser[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T