Type Alias sn0int::models::InsertCryptoAddr
source · pub type InsertCryptoAddr = NewCryptoAddr;
Aliased Type§
struct InsertCryptoAddr {
pub value: String,
pub currency: Option<String>,
pub denominator: Option<i32>,
pub balance: Option<i64>,
pub received: Option<i64>,
pub first_seen: Option<NaiveDateTime>,
pub last_withdrawal: Option<NaiveDateTime>,
pub unscoped: bool,
pub description: Option<String>,
}
Fields§
§value: String
§currency: Option<String>
§denominator: Option<i32>
§balance: Option<i64>
§received: Option<i64>
§first_seen: Option<NaiveDateTime>
§last_withdrawal: Option<NaiveDateTime>
§unscoped: bool
§description: Option<String>
Trait Implementations§
source§impl Clone for NewCryptoAddr
impl Clone for NewCryptoAddr
source§fn clone(&self) -> NewCryptoAddr
fn clone(&self) -> NewCryptoAddr
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 NewCryptoAddr
impl Debug for NewCryptoAddr
source§impl<'de> Deserialize<'de> for NewCryptoAddr
impl<'de> Deserialize<'de> for NewCryptoAddr
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 InsertCryptoAddr
impl InsertToNew for InsertCryptoAddr
type Target = NewCryptoAddr
fn try_into_new(self) -> Result<NewCryptoAddr>
source§impl<'insert> Insertable<table> for NewCryptoAddr
impl<'insert> Insertable<table> for NewCryptoAddr
§type Values = <(Option<Eq<value, <String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<currency, <String as AsExpression<<currency as Expression>::SqlType>>::Expression>>, Option<Eq<denominator, <i32 as AsExpression<<denominator as Expression>::SqlType>>::Expression>>, Option<Eq<balance, <i64 as AsExpression<<balance as Expression>::SqlType>>::Expression>>, Option<Eq<received, <i64 as AsExpression<<received as Expression>::SqlType>>::Expression>>, Option<Eq<first_seen, <NaiveDateTime as AsExpression<<first_seen as Expression>::SqlType>>::Expression>>, Option<Eq<last_withdrawal, <NaiveDateTime as AsExpression<<last_withdrawal as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<value, <String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<currency, <String as AsExpression<<currency as Expression>::SqlType>>::Expression>>, Option<Eq<denominator, <i32 as AsExpression<<denominator as Expression>::SqlType>>::Expression>>, Option<Eq<balance, <i64 as AsExpression<<balance as Expression>::SqlType>>::Expression>>, Option<Eq<received, <i64 as AsExpression<<received as Expression>::SqlType>>::Expression>>, Option<Eq<first_seen, <NaiveDateTime as AsExpression<<first_seen as Expression>::SqlType>>::Expression>>, Option<Eq<last_withdrawal, <NaiveDateTime as AsExpression<<last_withdrawal as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description 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 more