Struct sn0int::models::NewSubdomain
source · pub struct NewSubdomain {
pub domain_id: i32,
pub value: String,
pub resolvable: Option<bool>,
pub unscoped: bool,
}
Fields§
§domain_id: i32
§value: String
§resolvable: Option<bool>
§unscoped: bool
Trait Implementations§
source§impl AutoRule<NewSubdomain> for DomainRule
impl AutoRule<NewSubdomain> for DomainRule
source§impl Clone for NewSubdomain
impl Clone for NewSubdomain
source§fn clone(&self) -> NewSubdomain
fn clone(&self) -> NewSubdomain
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NewSubdomain
impl Debug for NewSubdomain
source§impl<'de> Deserialize<'de> for NewSubdomain
impl<'de> Deserialize<'de> for NewSubdomain
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<'insert> Insertable<table> for &'insert NewSubdomain
impl<'insert> Insertable<table> for &'insert NewSubdomain
§type Values = <(Option<Eq<domain_id, <&'insert i32 as AsExpression<<domain_id as Expression>::SqlType>>::Expression>>, Option<Eq<value, <&'insert String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<resolvable, <&'insert bool as AsExpression<<resolvable as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <&'insert bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<domain_id, <&'insert i32 as AsExpression<<domain_id as Expression>::SqlType>>::Expression>>, Option<Eq<value, <&'insert String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<resolvable, <&'insert bool as AsExpression<<resolvable as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <&'insert bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moresource§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl<'insert> Insertable<table> for NewSubdomain
impl<'insert> Insertable<table> for NewSubdomain
§type Values = <(Option<Eq<domain_id, <i32 as AsExpression<<domain_id as Expression>::SqlType>>::Expression>>, Option<Eq<value, <String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<resolvable, <bool as AsExpression<<resolvable as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<domain_id, <i32 as AsExpression<<domain_id as Expression>::SqlType>>::Expression>>, Option<Eq<value, <String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<resolvable, <bool as AsExpression<<resolvable as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moresource§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl InsertableStruct<Subdomain> for NewSubdomain
impl InsertableStruct<Subdomain> for NewSubdomain
source§impl Printable<PrintableSubdomain> for NewSubdomain
impl Printable<PrintableSubdomain> for NewSubdomain
source§impl Serialize for NewSubdomain
impl Serialize for NewSubdomain
source§impl Upsertable<Subdomain> for NewSubdomain
impl Upsertable<Subdomain> for NewSubdomain
impl<'insert> UndecoratedInsertRecord<table> for NewSubdomain
Auto Trait Implementations§
impl RefUnwindSafe for NewSubdomain
impl Send for NewSubdomain
impl Sync for NewSubdomain
impl Unpin for NewSubdomain
impl UnwindSafe for NewSubdomain
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