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

source§

fn clone(&self) -> NewCryptoAddr

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 NewCryptoAddr

source§

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

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

impl<'de> Deserialize<'de> for NewCryptoAddr

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 InsertCryptoAddr

source§

impl<'insert> Insertable<table> for NewCryptoAddr

source§

impl InsertableStruct<CryptoAddr> for NewCryptoAddr

source§

fn value(&self) -> &str

source§

fn set_scoped(&mut self, scoped: bool)

source§

fn insert(&self, db: &Database) -> Result<()>

source§

impl Printable<PrintableCryptoAddr> for NewCryptoAddr

source§

impl Serialize for NewCryptoAddr

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<CryptoAddr> for NewCryptoAddr

§

type Update = CryptoAddrUpdate

source§

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

source§

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

source§

impl<'insert> UndecoratedInsertRecord<table> for NewCryptoAddr