Struct sn0int::models::NewAccount[][src]

pub struct NewAccount {
    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 birthday: Option<String>,
    pub phonenumber: Option<String>,
    pub profile_pic: Option<String>,
}

Fields

value: Stringservice: Stringusername: Stringdisplayname: Option<String>email: Option<String>url: Option<String>last_seen: Option<NaiveDateTime>unscoped: boolbirthday: Option<String>phonenumber: Option<String>profile_pic: Option<String>

Trait Implementations

impl Clone for NewAccount[src]

impl Debug for NewAccount[src]

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

impl<'insert> Insertable<table> for NewAccount[src]

type Values = <(Option<Eq<value, String>>, Option<Eq<service, String>>, Option<Eq<username, String>>, Option<Eq<displayname, String>>, Option<Eq<email, String>>, Option<Eq<url, String>>, Option<Eq<last_seen, NaiveDateTime>>, Option<Eq<unscoped, bool>>, Option<Eq<birthday, String>>, Option<Eq<phonenumber, String>>, Option<Eq<profile_pic, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert NewAccount[src]

type Values = <(Option<Eq<value, &'insert String>>, Option<Eq<service, &'insert String>>, Option<Eq<username, &'insert String>>, Option<Eq<displayname, &'insert String>>, Option<Eq<email, &'insert String>>, Option<Eq<url, &'insert String>>, Option<Eq<last_seen, &'insert NaiveDateTime>>, Option<Eq<unscoped, &'insert bool>>, Option<Eq<birthday, &'insert String>>, Option<Eq<phonenumber, &'insert String>>, Option<Eq<profile_pic, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl InsertableStruct<Account> for NewAccount[src]

impl Printable<PrintableAccount> for NewAccount[src]

impl Serialize for NewAccount[src]

impl<'insert> UndecoratedInsertRecord<table> for NewAccount[src]

impl Upsertable<Account> for NewAccount[src]

type Update = AccountUpdate

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> Conv for T

impl<T> Conv for T

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

impl<T> FmtForward for T

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

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

impl<T> IntoSql for T[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

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> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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>,