[−][src]Enum carapax::access::PrincipalUser
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]
fn from(principal: PrincipalUser) -> Principal
[src]
impl From<i64> for PrincipalUser
[src]
fn from(user_id: Integer) -> PrincipalUser
[src]
impl From<String> for PrincipalUser
[src]
fn from(username: String) -> PrincipalUser
[src]
impl<'a> From<&'a str> for PrincipalUser
[src]
fn from(username: &'a str) -> PrincipalUser
[src]
impl Debug for PrincipalUser
[src]
Auto Trait Implementations
impl Send for PrincipalUser
impl Sync for PrincipalUser
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,