Struct sn0int::models::EmailUpdate
source · pub struct EmailUpdate {
pub id: i32,
pub displayname: Option<String>,
pub valid: Option<bool>,
}
Fields§
§id: i32
§displayname: Option<String>
§valid: Option<bool>
Trait Implementations§
source§impl<'update> AsChangeset for &'update EmailUpdate
impl<'update> AsChangeset for &'update EmailUpdate
§type Changeset = <(Option<Eq<displayname, <&'update String as AsExpression<<displayname as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <&'update bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Option<Eq<displayname, <&'update String as AsExpression<<displayname as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <&'update bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl<'update> AsChangeset for EmailUpdate
impl<'update> AsChangeset for EmailUpdate
§type Changeset = <(Option<Eq<displayname, <String as AsExpression<<displayname as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Option<Eq<displayname, <String as AsExpression<<displayname as Expression>::SqlType>>::Expression>>, Option<Eq<valid, <bool as AsExpression<<valid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedsource§impl Debug for EmailUpdate
impl Debug for EmailUpdate
source§impl<'de> Deserialize<'de> for EmailUpdate
impl<'de> Deserialize<'de> for EmailUpdate
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 HasTable for EmailUpdate
impl HasTable for EmailUpdate
source§impl<'ident> Identifiable for &'ident EmailUpdate
impl<'ident> Identifiable for &'ident EmailUpdate
source§impl Serialize for EmailUpdate
impl Serialize for EmailUpdate
source§impl Updateable<Email> for EmailUpdate
impl Updateable<Email> for EmailUpdate
fn changeset(&mut self, existing: &Email)
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 )
Auto Trait Implementations§
impl RefUnwindSafe for EmailUpdate
impl Send for EmailUpdate
impl Sync for EmailUpdate
impl Unpin for EmailUpdate
impl UnwindSafe for EmailUpdate
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