[][src]Struct toornament::Permission

pub struct Permission {
    pub id: Option<PermissionId>,
    pub email: String,
    pub attributes: PermissionAttributes,
}

A user permission

Fields

id: Option<PermissionId>

The permission identifier.

email: String

Email of the permitted user.

attributes: PermissionAttributes

The list of permission of the related user on the tournament.

Methods

impl Permission[src]

pub fn create<S: Into<String>>(
    email: S,
    attributes: PermissionAttributes
) -> Permission
[src]

Create permission object for adding it to a tournament (Toornament::create_tournament_permission)

Trait Implementations

impl Clone for Permission[src]

impl Debug for Permission[src]

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

impl Eq for Permission[src]

impl Ord for Permission[src]

impl PartialEq<Permission> for Permission[src]

impl PartialOrd<Permission> for Permission[src]

impl Serialize for Permission[src]

impl StructuralEq for Permission[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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, 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.