Struct sn0int::models::NewCryptoAddr
source · pub struct NewCryptoAddr {
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<'insert> Insertable<table> for &'insert NewCryptoAddr
impl<'insert> Insertable<table> for &'insert NewCryptoAddr
§type Values = <(Option<Eq<value, <&'insert String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<currency, <&'insert String as AsExpression<<currency as Expression>::SqlType>>::Expression>>, Option<Eq<denominator, <&'insert i32 as AsExpression<<denominator as Expression>::SqlType>>::Expression>>, Option<Eq<balance, <&'insert i64 as AsExpression<<balance as Expression>::SqlType>>::Expression>>, Option<Eq<received, <&'insert i64 as AsExpression<<received as Expression>::SqlType>>::Expression>>, Option<Eq<first_seen, <&'insert NaiveDateTime as AsExpression<<first_seen as Expression>::SqlType>>::Expression>>, Option<Eq<last_withdrawal, <&'insert NaiveDateTime as AsExpression<<last_withdrawal as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <&'insert bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<value, <&'insert String as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<currency, <&'insert String as AsExpression<<currency as Expression>::SqlType>>::Expression>>, Option<Eq<denominator, <&'insert i32 as AsExpression<<denominator as Expression>::SqlType>>::Expression>>, Option<Eq<balance, <&'insert i64 as AsExpression<<balance as Expression>::SqlType>>::Expression>>, Option<Eq<received, <&'insert i64 as AsExpression<<received as Expression>::SqlType>>::Expression>>, Option<Eq<first_seen, <&'insert NaiveDateTime as AsExpression<<first_seen as Expression>::SqlType>>::Expression>>, Option<Eq<last_withdrawal, <&'insert NaiveDateTime as AsExpression<<last_withdrawal as Expression>::SqlType>>::Expression>>, Option<Eq<unscoped, <&'insert bool as AsExpression<<unscoped as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert 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 moresource§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 moresource§impl InsertableStruct<CryptoAddr> for NewCryptoAddr
impl InsertableStruct<CryptoAddr> for NewCryptoAddr
source§impl Printable<PrintableCryptoAddr> for NewCryptoAddr
impl Printable<PrintableCryptoAddr> for NewCryptoAddr
source§impl Serialize for NewCryptoAddr
impl Serialize for NewCryptoAddr
source§impl Upsertable<CryptoAddr> for NewCryptoAddr
impl Upsertable<CryptoAddr> for NewCryptoAddr
type Update = CryptoAddrUpdate
fn upsert(self, existing: &CryptoAddr) -> Self::Update
fn upsert_opt<T: PartialEq>( insert: Option<T>, existing: &Option<T> ) -> Option<T>
impl<'insert> UndecoratedInsertRecord<table> for NewCryptoAddr
Auto Trait Implementations§
impl RefUnwindSafe for NewCryptoAddr
impl Send for NewCryptoAddr
impl Sync for NewCryptoAddr
impl Unpin for NewCryptoAddr
impl UnwindSafe for NewCryptoAddr
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