[][src]Struct investments::db::models::Asset

pub struct Asset {
    pub portfolio: String,
    pub asset_type: AssetType,
    pub symbol: String,
    pub quantity: String,
}

Fields

portfolio: Stringasset_type: AssetTypesymbol: Stringquantity: String

Trait Implementations

impl<'insert> Insertable<table> for Asset[src]

type Values = <(Option<Eq<portfolio, String>>, Option<Eq<asset_type, AssetType>>, Option<Eq<symbol, String>>, Option<Eq<quantity, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert Asset[src]

type Values = <(Option<Eq<portfolio, &'insert String>>, Option<Eq<asset_type, &'insert AssetType>>, Option<Eq<symbol, &'insert String>>, Option<Eq<quantity, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Asset where
    (String, AssetType, String, String): Queryable<__ST, __DB>, 
[src]

type Row = <(String, AssetType, String, String) as Queryable<__ST, __DB>>::Row

The Rust type you'd like to map from. Read more

impl<'insert> UndecoratedInsertRecord<table> for Asset[src]

Auto Trait Implementations

impl RefUnwindSafe for Asset

impl Send for Asset

impl Sync for Asset

impl Unpin for Asset

impl UnwindSafe for Asset

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,