[][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,
}

Fields

id: i32value: Stringservice: Stringusername: Stringdisplayname: Option<String>email: Option<String>url: Option<String>last_seen: Option<NaiveDateTime>unscoped: bool

Trait Implementations

impl Model for Account[src]

type ID = str

fn get_id(db: &Database, query: &Self::ID) -> Result<i32>[src]

fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>>[src]

fn blob(&self) -> Option<&str>[src]

impl Scopable for Account[src]

impl InsertableStruct<Account> for NewAccount[src]

impl Upsertable<Account> for NewAccount[src]

type Update = AccountUpdate

fn upsert_opt<T: PartialEq>(
    insert: Option<T>,
    existing: &Option<T>
) -> Option<T>
[src]

impl Updateable<Account> for AccountUpdate[src]

fn to_string(&self) -> String[src]

fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)[src]

fn push_value<D: Debug>(
    updates: &mut Vec<String>,
    name: &str,
    value: &Option<D>
)
[src]

fn push_raw<T: AsRef<str>>(
    updates: &mut Vec<String>,
    name: &str,
    value: Option<T>
)
[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<__DB: Backend, __ST> Queryable<__ST, __DB> for Account where
    (i32, String, String, String, Option<String>, Option<String>, Option<String>, Option<NaiveDateTime>, bool): Queryable<__ST, __DB>, 
[src]

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

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

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 Serialize for Account[src]

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

Auto Trait Implementations

impl Send for Account

impl Sync for Account

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.