Struct wicrs_server::user::GenericUser[][src]

pub struct GenericUser {
    pub id: ID,
    pub status: String,
    pub description: String,
    pub username: String,
    pub created: DateTime<Utc>,
    pub hubs_hashed: Vec<String>,
}

Represents the publicly available information on a user, (excludes their email address and the service they signed up with) also only includes the generic version of accounts. Refer to User for the use of the fields.

Fields

id: IDstatus: Stringdescription: Stringusername: Stringcreated: DateTime<Utc>hubs_hashed: Vec<String>

Hashed versions of the IDs of the hubs that the user is in.

Implementations

impl GenericUser[src]

pub async fn id(&self, ctx: &Context<'_>) -> Result<&ID>[src]

pub async fn status(&self, ctx: &Context<'_>) -> Result<&String>[src]

pub async fn description(&self, ctx: &Context<'_>) -> Result<&String>[src]

pub async fn username(&self, ctx: &Context<'_>) -> Result<&String>[src]

pub async fn created(&self, ctx: &Context<'_>) -> Result<&DateTime<Utc>>[src]

pub async fn hubs_hashed(&self, ctx: &Context<'_>) -> Result<&Vec<String>>[src]

Trait Implementations

impl Clone for GenericUser[src]

impl ContainerType for GenericUser[src]

impl Debug for GenericUser[src]

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

impl ObjectType for GenericUser[src]

impl OutputType for GenericUser[src]

impl PartialEq<GenericUser> for GenericUser[src]

impl Serialize for GenericUser[src]

impl StructuralPartialEq for GenericUser[src]

impl Type for GenericUser[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: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<T> Fruit for T where
    T: Send + Downcast, 
[src]

impl<T> Instrument for T[src]

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

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

type Err = Infallible

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,