Struct sn0int::models::InsertAccount
source · pub struct InsertAccount {
pub service: String,
pub username: String,
pub displayname: Option<String>,
pub email: Option<String>,
pub url: Option<String>,
pub last_seen: Option<NaiveDateTime>,
pub birthday: Option<String>,
pub phonenumber: Option<String>,
pub profile_pic: Option<String>,
}
Fields§
§service: String
§username: String
§displayname: Option<String>
§email: Option<String>
§url: Option<String>
§last_seen: Option<NaiveDateTime>
§birthday: Option<String>
§phonenumber: Option<String>
§profile_pic: Option<String>
Trait Implementations§
source§impl Debug for InsertAccount
impl Debug for InsertAccount
source§impl<'de> Deserialize<'de> for InsertAccount
impl<'de> Deserialize<'de> for InsertAccount
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 InsertToNew for InsertAccount
impl InsertToNew for InsertAccount
type Target = NewAccount
fn try_into_new(self) -> Result<NewAccount>
Auto Trait Implementations§
impl RefUnwindSafe for InsertAccount
impl Send for InsertAccount
impl Sync for InsertAccount
impl Unpin for InsertAccount
impl UnwindSafe for InsertAccount
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