pub struct Voter {
pub voting_key: String,
pub voting_power: i64,
pub voting_group: String,
pub snapshot_tag: String,
}
Fields§
§voting_key: String
§voting_power: i64
§voting_group: String
§snapshot_tag: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Voter
impl<'de> Deserialize<'de> for Voter
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 Voter
impl<'insert> Insertable<table> for &'insert Voter
§type Values = <(Option<Eq<voting_key, <&'insert String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_power, <&'insert i64 as AsExpression<<voting_power 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<voting_key, <&'insert String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_power, <&'insert i64 as AsExpression<<voting_power 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 Voter
impl<'insert> Insertable<table> for Voter
§type Values = <(Option<Eq<voting_key, <String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_power, <i64 as AsExpression<<voting_power 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<voting_key, <String as AsExpression<<voting_key as Expression>::SqlType>>::Expression>>, Option<Eq<voting_power, <i64 as AsExpression<<voting_power 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<Voter> for Voter
impl PartialEq<Voter> for Voter
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Voterwhere
(String, i64, String, String): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Voterwhere (String, i64, String, String): Queryable<__ST, __DB>,
impl Eq for Voter
impl StructuralEq for Voter
impl StructuralPartialEq for Voter
impl<'insert> UndecoratedInsertRecord<table> for Voter
Auto Trait Implementations§
impl RefUnwindSafe for Voter
impl Send for Voter
impl Sync for Voter
impl Unpin for Voter
impl UnwindSafe for Voter
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.