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: i32
§value: String
§service: String
§username: String
§displayname: Option<String>
§email: Option<String>
§url: Option<String>
§last_seen: Option<NaiveDateTime>
§unscoped: bool
§phonenumber: Option<String>
§profile_pic: Option<String>
§birthday: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'ident> Identifiable for &'ident Account
impl<'ident> Identifiable for &'ident Account
source§impl InsertableStruct<Account> for NewAccount
impl InsertableStruct<Account> for NewAccount
source§impl Model for Account
impl Model for Account
type ID = str
fn to_string(&self) -> String
fn list(db: &Database) -> Result<Vec<Self>>
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>>
fn filter_with_param( db: &Database, filter: &Filter, param: &str ) -> Result<Vec<Self>>
fn delete(db: &Database, filter: &Filter) -> Result<usize>
fn delete_id(db: &Database, my_id: i32) -> Result<usize>
fn id(&self) -> i32
fn value(&self) -> &Self::ID
fn by_id(db: &Database, my_id: i32) -> Result<Self>
fn get(db: &Database, query: &Self::ID) -> Result<Self>
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>>
fn get_id(db: &Database, query: &Self::ID) -> Result<i32>
fn get_id_opt(db: &Database, query: &Self::ID) -> Result<Option<i32>>
fn blob(&self) -> Option<&str>
source§impl PartialEq<Account> for Account
impl PartialEq<Account> for Account
source§impl Printable<PrintableAccount> for Account
impl Printable<PrintableAccount> for Account
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Accountwhere
(i32, String, String, String, Option<String>, Option<String>, Option<String>, Option<NaiveDateTime>, bool, Option<String>, Option<String>, Option<String>): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Accountwhere (i32, String, String, String, Option<String>, Option<String>, Option<String>, Option<NaiveDateTime>, bool, Option<String>, Option<String>, Option<String>): Queryable<__ST, __DB>,
source§impl Updateable<Account> for AccountUpdate
impl Updateable<Account> for AccountUpdate
fn changeset(&mut self, existing: &Account)
fn fmt(&self, updates: &mut Vec<String>, colors: bool)
fn to_plain_str(&self) -> String
fn to_term_str(&self) -> String
fn clear_if_equal<T: PartialEq>(update: &mut Option<T>, existing: &Option<T>)
fn clear_if_lower_or_equal<T: PartialOrd>( update: &mut Option<T>, existing: &Option<T> )
fn clear_if_greater_or_equal<T: PartialOrd>( update: &mut Option<T>, existing: &Option<T> )
fn push_value<D: Debug>( updates: &mut Vec<String>, name: &str, value: &Option<D>, colors: bool )
fn push_raw<T: AsRef<str>>( updates: &mut Vec<String>, name: &str, value: Option<T>, colors: bool )
source§impl Upsertable<Account> for NewAccount
impl Upsertable<Account> for NewAccount
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more