Struct vit_servicing_station_lib::db::models::challenges::Challenge
source · pub struct Challenge {
pub internal_id: i32,
pub id: i32,
pub challenge_type: ChallengeType,
pub title: String,
pub description: String,
pub rewards_total: i64,
pub proposers_rewards: i64,
pub fund_id: i32,
pub challenge_url: String,
pub highlights: Option<ChallengeHighlights>,
}
Fields§
§internal_id: i32
§id: i32
§challenge_type: ChallengeType
§title: String
§description: String
§rewards_total: i64
§proposers_rewards: i64
§fund_id: i32
§challenge_url: String
§highlights: Option<ChallengeHighlights>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Challenge
impl<'de> Deserialize<'de> for Challenge
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 Challenge
impl Insertable<table> for Challenge
§type Values = (Eq<id, <i32 as AsExpression<<id as Expression>::SqlType>>::Expression>, Eq<challenge_type, <String as AsExpression<<challenge_type as Expression>::SqlType>>::Expression>, Eq<title, <String as AsExpression<<title as Expression>::SqlType>>::Expression>, Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>, Eq<rewards_total, <i64 as AsExpression<<rewards_total as Expression>::SqlType>>::Expression>, Eq<proposers_rewards, <i64 as AsExpression<<proposers_rewards as Expression>::SqlType>>::Expression>, Eq<fund_id, <i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>, Eq<challenge_url, <String as AsExpression<<challenge_url as Expression>::SqlType>>::Expression>, Eq<highlights, <Option<String> as AsExpression<<highlights as Expression>::SqlType>>::Expression>)
type Values = (Eq<id, <i32 as AsExpression<<id as Expression>::SqlType>>::Expression>, Eq<challenge_type, <String as AsExpression<<challenge_type as Expression>::SqlType>>::Expression>, Eq<title, <String as AsExpression<<title as Expression>::SqlType>>::Expression>, Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>, Eq<rewards_total, <i64 as AsExpression<<rewards_total as Expression>::SqlType>>::Expression>, Eq<proposers_rewards, <i64 as AsExpression<<proposers_rewards as Expression>::SqlType>>::Expression>, Eq<fund_id, <i32 as AsExpression<<fund_id as Expression>::SqlType>>::Expression>, Eq<challenge_url, <String as AsExpression<<challenge_url as Expression>::SqlType>>::Expression>, Eq<highlights, <Option<String> as AsExpression<<highlights 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<Challenge> for Challenge
impl PartialEq<Challenge> for Challenge
source§impl<DB: Backend> Queryable<(Integer, Integer, Text, Text, Text, BigInt, BigInt, Integer, Text, Nullable<Text>), DB> for Challengewhere
i32: FromSql<Integer, DB>,
i64: FromSql<BigInt, DB>,
String: FromSql<Text, DB>,
impl<DB: Backend> Queryable<(Integer, Integer, Text, Text, Text, BigInt, BigInt, Integer, Text, Nullable<Text>), DB> for Challengewhere i32: FromSql<Integer, DB>, i64: FromSql<BigInt, DB>, String: FromSql<Text, DB>,
impl Eq for Challenge
impl StructuralEq for Challenge
impl StructuralPartialEq for Challenge
Auto Trait Implementations§
impl RefUnwindSafe for Challenge
impl Send for Challenge
impl Sync for Challenge
impl Unpin for Challenge
impl UnwindSafe for Challenge
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.