Struct vit_servicing_station_lib::db::models::proposals::ProposalVotePlan
source · pub struct ProposalVotePlan {
pub proposal_id: String,
pub common: ProposalVotePlanCommon,
}
Fields§
§proposal_id: String
§common: ProposalVotePlanCommon
Trait Implementations§
source§impl Clone for ProposalVotePlan
impl Clone for ProposalVotePlan
source§fn clone(&self) -> ProposalVotePlan
fn clone(&self) -> ProposalVotePlan
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 ProposalVotePlan
impl Debug for ProposalVotePlan
source§impl<'de> Deserialize<'de> for ProposalVotePlan
impl<'de> Deserialize<'de> for ProposalVotePlan
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 Insertable<table> for ProposalVotePlan
impl Insertable<table> for ProposalVotePlan
§type Values = (Eq<proposal_id, <String as AsExpression<<proposal_id as Expression>::SqlType>>::Expression>, Eq<chain_proposal_index, <i64 as AsExpression<<chain_proposal_index as Expression>::SqlType>>::Expression>, Eq<chain_voteplan_id, <String as AsExpression<<chain_voteplan_id as Expression>::SqlType>>::Expression>)
type Values = (Eq<proposal_id, <String as AsExpression<<proposal_id as Expression>::SqlType>>::Expression>, Eq<chain_proposal_index, <i64 as AsExpression<<chain_proposal_index as Expression>::SqlType>>::Expression>, Eq<chain_voteplan_id, <String as AsExpression<<chain_voteplan_id as Expression>::SqlType>>::Expression>)
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<ProposalVotePlan> for ProposalVotePlan
impl PartialEq<ProposalVotePlan> for ProposalVotePlan
source§fn eq(&self, other: &ProposalVotePlan) -> bool
fn eq(&self, other: &ProposalVotePlan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<DB: Backend> Queryable<(Integer, Text, Text, Text, Text, Text, BigInt, Text, Text, BigInt, Text, Text, Text, Text, Binary, Array<Text>, Integer, Nullable<Text>, Integer, BigInt, BigInt, BigInt, Text, Text, Integer, Text, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, BigInt, Text, Text), DB> for ProposalVotePlanwhere
i32: FromSql<Integer, DB>,
i64: FromSql<BigInt, DB>,
String: FromSql<Text, DB>,
Vec<u8>: FromSql<Binary, DB>,
Vec<String>: FromSql<Array<Text>, DB>,
impl<DB: Backend> Queryable<(Integer, Text, Text, Text, Text, Text, BigInt, Text, Text, BigInt, Text, Text, Text, Text, Binary, Array<Text>, Integer, Nullable<Text>, Integer, BigInt, BigInt, BigInt, Text, Text, Integer, Text, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, Nullable<Text>, BigInt, Text, Text), DB> for ProposalVotePlanwhere i32: FromSql<Integer, DB>, i64: FromSql<BigInt, DB>, String: FromSql<Text, DB>, Vec<u8>: FromSql<Binary, DB>, Vec<String>: FromSql<Array<Text>, DB>,
§type Row = (i32, String, String, String, String, String, i64, String, String, i64, String, String, String, String, Vec<u8, Global>, Vec<String, Global>, i32, Option<String>, i32, i64, i64, i64, String, String, i32, String, Option<String>, Option<String>, Option<String>, Option<String>, Option<String>, i64, String, String)
type Row = (i32, String, String, String, String, String, i64, String, String, i64, String, String, String, String, Vec<u8, Global>, Vec<String, Global>, i32, Option<String>, i32, i64, i64, i64, String, String, i32, String, Option<String>, Option<String>, Option<String>, Option<String>, Option<String>, i64, String, String)
The Rust type you’d like to map from. Read more
source§impl Serialize for ProposalVotePlan
impl Serialize for ProposalVotePlan
impl Eq for ProposalVotePlan
impl StructuralEq for ProposalVotePlan
impl StructuralPartialEq for ProposalVotePlan
Auto Trait Implementations§
impl RefUnwindSafe for ProposalVotePlan
impl Send for ProposalVotePlan
impl Sync for ProposalVotePlan
impl Unpin for ProposalVotePlan
impl UnwindSafe for ProposalVotePlan
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.