Struct vit_servicing_station_lib::db::models::snapshot::Contribution
source · pub struct Contribution {
pub stake_public_key: String,
pub reward_address: String,
pub value: i64,
pub voting_key: String,
pub voting_group: String,
pub snapshot_tag: String,
}
Fields§
§stake_public_key: String
§reward_address: String
§value: i64
§voting_key: String
§voting_group: String
§snapshot_tag: String
Trait Implementations§
source§impl Clone for Contribution
impl Clone for Contribution
source§fn clone(&self) -> Contribution
fn clone(&self) -> Contribution
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 Contribution
impl Debug for Contribution
source§impl<'de> Deserialize<'de> for Contribution
impl<'de> Deserialize<'de> for Contribution
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 Contribution
impl<'insert> Insertable<table> for &'insert Contribution
§type Values = <(Option<Eq<stake_public_key, <&'insert String as AsExpression<<stake_public_key as Expression>::SqlType>>::Expression>>, Option<Eq<reward_address, <&'insert String as AsExpression<<reward_address as Expression>::SqlType>>::Expression>>, Option<Eq<value, <&'insert i64 as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<voting_key, <&'insert String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_group, <&'insert String as AsExpression<<voting_group as Expression>::SqlType>>::Expression>>, Option<Eq<snapshot_tag, <&'insert String as AsExpression<<snapshot_tag as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<stake_public_key, <&'insert String as AsExpression<<stake_public_key as Expression>::SqlType>>::Expression>>, Option<Eq<reward_address, <&'insert String as AsExpression<<reward_address as Expression>::SqlType>>::Expression>>, Option<Eq<value, <&'insert i64 as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<voting_key, <&'insert String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_group, <&'insert String as AsExpression<<voting_group as Expression>::SqlType>>::Expression>>, Option<Eq<snapshot_tag, <&'insert String as AsExpression<<snapshot_tag as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read more§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 Contribution
impl<'insert> Insertable<table> for Contribution
§type Values = <(Option<Eq<stake_public_key, <String as AsExpression<<stake_public_key as Expression>::SqlType>>::Expression>>, Option<Eq<reward_address, <String as AsExpression<<reward_address as Expression>::SqlType>>::Expression>>, Option<Eq<value, <i64 as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<voting_key, <String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_group, <String as AsExpression<<voting_group as Expression>::SqlType>>::Expression>>, Option<Eq<snapshot_tag, <String as AsExpression<<snapshot_tag as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<stake_public_key, <String as AsExpression<<stake_public_key as Expression>::SqlType>>::Expression>>, Option<Eq<reward_address, <String as AsExpression<<reward_address as Expression>::SqlType>>::Expression>>, Option<Eq<value, <i64 as AsExpression<<value as Expression>::SqlType>>::Expression>>, Option<Eq<voting_key, <String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_group, <String as AsExpression<<voting_group as Expression>::SqlType>>::Expression>>, Option<Eq<snapshot_tag, <String as AsExpression<<snapshot_tag as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read more§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 PartialEq<Contribution> for Contribution
impl PartialEq<Contribution> for Contribution
source§fn eq(&self, other: &Contribution) -> bool
fn eq(&self, other: &Contribution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Contributionwhere
(String, String, i64, String, String, String): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Contributionwhere (String, String, i64, String, String, String): Queryable<__ST, __DB>,
source§impl Serialize for Contribution
impl Serialize for Contribution
impl Eq for Contribution
impl StructuralEq for Contribution
impl StructuralPartialEq for Contribution
impl<'insert> UndecoratedInsertRecord<table> for Contribution
Auto Trait Implementations§
impl RefUnwindSafe for Contribution
impl Send for Contribution
impl Sync for Contribution
impl Unpin for Contribution
impl UnwindSafe for Contribution
Blanket Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.