Struct sn0int::models::SubdomainUpdate
source · pub struct SubdomainUpdate {
pub id: i32,
pub resolvable: Option<bool>,
}
Fields§
§id: i32
§resolvable: Option<bool>
Trait Implementations§
source§impl<'update> AsChangeset for &'update SubdomainUpdate
impl<'update> AsChangeset for &'update SubdomainUpdate
§type Changeset = <(Option<Eq<resolvable, <&'update bool as AsExpression<<resolvable as Expression>::SqlType>>::Expression>>,) as AsChangeset>::Changeset
type Changeset = <(Option<Eq<resolvable, <&'update bool as AsExpression<<resolvable 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 SubdomainUpdate
impl<'update> AsChangeset for SubdomainUpdate
§type Changeset = <(Option<Eq<resolvable, <bool as AsExpression<<resolvable as Expression>::SqlType>>::Expression>>,) as AsChangeset>::Changeset
type Changeset = <(Option<Eq<resolvable, <bool as AsExpression<<resolvable 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 SubdomainUpdate
impl Debug for SubdomainUpdate
source§impl<'de> Deserialize<'de> for SubdomainUpdate
impl<'de> Deserialize<'de> for SubdomainUpdate
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 SubdomainUpdate
impl HasTable for SubdomainUpdate
source§impl<'ident> Identifiable for &'ident SubdomainUpdate
impl<'ident> Identifiable for &'ident SubdomainUpdate
source§impl Serialize for SubdomainUpdate
impl Serialize for SubdomainUpdate
source§impl Updateable<Subdomain> for SubdomainUpdate
impl Updateable<Subdomain> for SubdomainUpdate
fn changeset(&mut self, existing: &Subdomain)
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 SubdomainUpdate
impl Send for SubdomainUpdate
impl Sync for SubdomainUpdate
impl Unpin for SubdomainUpdate
impl UnwindSafe for SubdomainUpdate
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