pub struct Voteplan {
pub id: i32,
pub chain_voteplan_id: String,
pub chain_vote_start_time: i64,
pub chain_vote_end_time: i64,
pub chain_committee_end_time: i64,
pub chain_voteplan_payload: String,
pub chain_vote_encryption_key: String,
pub fund_id: i32,
pub token_identifier: String,
}
Fields§
§id: i32
§chain_voteplan_id: String
§chain_vote_start_time: i64
§chain_vote_end_time: i64
§chain_committee_end_time: i64
§chain_voteplan_payload: String
§chain_vote_encryption_key: String
§fund_id: i32
§token_identifier: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Voteplan
impl<'de> Deserialize<'de> for Voteplan
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 Voteplan
impl Insertable<table> for Voteplan
§type Values = (Eq<chain_voteplan_id, <String as AsExpression<<chain_voteplan_id as Expression>::SqlType>>::Expression>, Eq<chain_vote_start_time, <i64 as AsExpression<<chain_vote_start_time as Expression>::SqlType>>::Expression>, Eq<chain_vote_end_time, <i64 as AsExpression<<chain_vote_end_time as Expression>::SqlType>>::Expression>, Eq<chain_committee_end_time, <i64 as AsExpression<<chain_committee_end_time as Expression>::SqlType>>::Expression>, Eq<chain_voteplan_payload, <String as AsExpression<<chain_voteplan_payload as Expression>::SqlType>>::Expression>, Eq<chain_vote_encryption_key, <String as AsExpression<<chain_vote_encryption_key as Expression>::SqlType>>::Expression>, Eq<fund_id, <i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>, Eq<token_identifier, <String as AsExpression<<token_identifier as Expression>::SqlType>>::Expression>)
type Values = (Eq<chain_voteplan_id, <String as AsExpression<<chain_voteplan_id as Expression>::SqlType>>::Expression>, Eq<chain_vote_start_time, <i64 as AsExpression<<chain_vote_start_time as Expression>::SqlType>>::Expression>, Eq<chain_vote_end_time, <i64 as AsExpression<<chain_vote_end_time as Expression>::SqlType>>::Expression>, Eq<chain_committee_end_time, <i64 as AsExpression<<chain_committee_end_time as Expression>::SqlType>>::Expression>, Eq<chain_voteplan_payload, <String as AsExpression<<chain_voteplan_payload as Expression>::SqlType>>::Expression>, Eq<chain_vote_encryption_key, <String as AsExpression<<chain_vote_encryption_key as Expression>::SqlType>>::Expression>, Eq<fund_id, <i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>, Eq<token_identifier, <String as AsExpression<<token_identifier 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<Voteplan> for Voteplan
impl PartialEq<Voteplan> for Voteplan
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Voteplanwhere
(i32, String, i64, i64, i64, String, String, i32, String): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Voteplanwhere (i32, String, i64, i64, i64, String, String, i32, String): Queryable<__ST, __DB>,
impl Eq for Voteplan
impl StructuralEq for Voteplan
impl StructuralPartialEq for Voteplan
Auto Trait Implementations§
impl RefUnwindSafe for Voteplan
impl Send for Voteplan
impl Sync for Voteplan
impl Unpin for Voteplan
impl UnwindSafe for Voteplan
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.