[][src]Struct sn0int::models::Account

pub struct Account {
    pub id: i32,
    pub value: String,
    pub service: String,
    pub username: String,
    pub displayname: Option<String>,
    pub email: Option<String>,
    pub url: Option<String>,
    pub last_seen: Option<NaiveDateTime>,
    pub unscoped: bool,
    pub phonenumber: Option<String>,
    pub profile_pic: Option<String>,
    pub birthday: Option<String>,
}

Fields

id: i32value: Stringservice: Stringusername: Stringdisplayname: Option<String>email: Option<String>url: Option<String>last_seen: Option<NaiveDateTime>unscoped: boolphonenumber: Option<String>profile_pic: Option<String>birthday: Option<String>

Trait Implementations

impl Model for Account[src]

type ID = str

impl Scopable for Account[src]

impl InsertableStruct<Account> for NewAccount[src]

impl Upsertable<Account> for NewAccount[src]

type Update = AccountUpdate

impl Updateable<Account> for AccountUpdate[src]

impl Printable<PrintableAccount> for Account[src]

impl Detailed for Account[src]

type T = DetailedAccount

impl PartialEq<Account> for Account[src]

impl Debug for Account[src]

impl StructuralPartialEq for Account[src]

impl HasTable for Account[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident Account[src]

type Id = &'ident i32

The type of this struct's identifier. Read more

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Account where
    (i32, String, String, String, Option<String>, Option<String>, Option<String>, Option<NaiveDateTime>, bool, Option<String>, Option<String>, Option<String>): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, String, String, String, Option<String>, Option<String>, Option<String>, Option<NaiveDateTime>, bool, Option<String>, Option<String>, Option<String>) as Queryable<__ST, __DB>>::Row

The Rust type you'd like to map from. Read more

impl Serialize for Account[src]

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

Auto Trait Implementations

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

impl RefUnwindSafe for Account

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> IntoSql for T[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T