pub struct Vote {
pub fragment_id: String,
pub caster: String,
pub proposal: i32,
pub voteplan_id: String,
pub time: f32,
pub choice: Option<i16>,
pub raw_fragment: String,
}
Fields§
§fragment_id: String
§caster: String
§proposal: i32
§voteplan_id: String
§time: f32
§choice: Option<i16>
§raw_fragment: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Vote
impl<'de> Deserialize<'de> for Vote
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 Vote
impl Insertable<table> for Vote
§type Values = (Eq<fragment_id, <String as AsExpression<<fragment_id as Expression>::SqlType>>::Expression>, Eq<caster, <String as AsExpression<<caster as Expression>::SqlType>>::Expression>, Eq<proposal, <i32 as AsExpression<<proposal as Expression>::SqlType>>::Expression>, Eq<voteplan_id, <String as AsExpression<<voteplan_id as Expression>::SqlType>>::Expression>, Eq<time, <f32 as AsExpression<<time as Expression>::SqlType>>::Expression>, Eq<choice, <Option<i16> as AsExpression<<choice as Expression>::SqlType>>::Expression>, Eq<raw_fragment, <String as AsExpression<<raw_fragment as Expression>::SqlType>>::Expression>)
type Values = (Eq<fragment_id, <String as AsExpression<<fragment_id as Expression>::SqlType>>::Expression>, Eq<caster, <String as AsExpression<<caster as Expression>::SqlType>>::Expression>, Eq<proposal, <i32 as AsExpression<<proposal as Expression>::SqlType>>::Expression>, Eq<voteplan_id, <String as AsExpression<<voteplan_id as Expression>::SqlType>>::Expression>, Eq<time, <f32 as AsExpression<<time as Expression>::SqlType>>::Expression>, Eq<choice, <Option<i16> as AsExpression<<choice as Expression>::SqlType>>::Expression>, Eq<raw_fragment, <String as AsExpression<<raw_fragment 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<Vote> for Vote
impl PartialEq<Vote> for Vote
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Votewhere
(String, String, i32, String, f32, Option<i16>, String): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Votewhere (String, String, i32, String, f32, Option<i16>, String): Queryable<__ST, __DB>,
impl StructuralPartialEq for Vote
Auto Trait Implementations§
impl RefUnwindSafe for Vote
impl Send for Vote
impl Sync for Vote
impl Unpin for Vote
impl UnwindSafe for Vote
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