Type Alias sn0int::models::InsertBreachEmail

source ·
pub type InsertBreachEmail = NewBreachEmail;

Aliased Type§

struct InsertBreachEmail {
    pub breach_id: i32,
    pub email_id: i32,
    pub password: Option<String>,
}

Fields§

§breach_id: i32§email_id: i32§password: Option<String>

Trait Implementations§

source§

impl Clone for NewBreachEmail

source§

fn clone(&self) -> NewBreachEmail

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NewBreachEmail

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NewBreachEmail

source§

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 InsertBreachEmail

source§

impl<'insert> Insertable<table> for NewBreachEmail

§

type Values = <(Option<Eq<breach_id, <i32 as AsExpression<<breach_id as Expression>::SqlType>>::Expression>>, Option<Eq<email_id, <i32 as AsExpression<<email_id as Expression>::SqlType>>::Expression>>, Option<Eq<password, <String as AsExpression<<password as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
source§

fn values(self) -> Self::Values

Construct Self::Values Read more
source§

fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,

Insert self into a given table. Read more
source§

impl Printable<PrintableBreachEmail> for NewBreachEmail

source§

impl Serialize for NewBreachEmail

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Upsertable<BreachEmail> for NewBreachEmail

§

type Update = BreachEmailUpdate

source§

fn upsert(self, existing: &BreachEmail) -> Self::Update

source§

fn upsert_opt<T: PartialEq>( insert: Option<T>, existing: &Option<T> ) -> Option<T>

source§

impl<'insert> UndecoratedInsertRecord<table> for NewBreachEmail