[−][src]Struct sn0int::models::Account
Fields
id: i32
value: String
service: String
username: String
displayname: 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 to_string(&self) -> String
[src]
fn list(db: &Database) -> Result<Vec<Self>>
[src]
fn filter(db: &Database, filter: &Filter) -> Result<Vec<Self>>
[src]
fn filter_with_param(
db: &Database,
filter: &Filter,
param: &str
) -> Result<Vec<Self>>
[src]
db: &Database,
filter: &Filter,
param: &str
) -> Result<Vec<Self>>
fn delete(db: &Database, filter: &Filter) -> Result<usize>
[src]
fn delete_id(db: &Database, my_id: i32) -> Result<usize>
[src]
fn id(&self) -> i32
[src]
fn value(&self) -> &Self::ID
[src]
fn by_id(db: &Database, my_id: i32) -> Result<Self>
[src]
fn get(db: &Database, query: &Self::ID) -> Result<Self>
[src]
fn get_opt(db: &Database, query: &Self::ID) -> Result<Option<Self>>
[src]
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]
fn scoped(&self) -> bool
[src]
fn scope(db: &Database, filter: &Filter) -> Result<usize>
[src]
fn noscope(db: &Database, filter: &Filter) -> Result<usize>
[src]
impl InsertableStruct<Account> for NewAccount
[src]
impl Upsertable<Account> for NewAccount
[src]
type Update = AccountUpdate
fn upsert(self, existing: &Account) -> Self::Update
[src]
fn upsert_opt<T: PartialEq>(
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
[src]
insert: Option<T>,
existing: &Option<T>
) -> Option<T>
impl Updateable<Account> for AccountUpdate
[src]
fn changeset(&mut self, existing: &Account)
[src]
fn fmt(&self, updates: &mut Vec<String>)
[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]
updates: &mut Vec<String>,
name: &str,
value: &Option<D>
)
fn push_raw<T: AsRef<str>>(
updates: &mut Vec<String>,
name: &str,
value: Option<T>
)
[src]
updates: &mut Vec<String>,
name: &str,
value: Option<T>
)
impl Printable<PrintableAccount> for Account
[src]
fn printable(&self, _db: &Database) -> Result<PrintableAccount>
[src]
impl Detailed for Account
[src]
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]
(i32, String, String, String, Option<String>, Option<String>, Option<String>, Option<NaiveDateTime>, bool): Queryable<__ST, __DB>,
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
fn build(row: Self::Row) -> Self
[src]
impl HasTable for Account
[src]
impl<'ident> Identifiable for &'ident Account
[src]
impl Serialize for Account
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Account
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
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]
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel's query builder. Read more
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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>,
T: Parameter<Self>,
Sets value
as a parameter of self
.