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<Challenge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Challenge, <__D as Deserializer<'de>>::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> Queryable<(Integer, Integer, Text, Text, Text, BigInt, BigInt, Integer, Text, Nullable<Text>), DB> for Challengewhere
DB: Backend,
i32: FromSql<Integer, DB>,
i64: FromSql<BigInt, DB>,
String: FromSql<Text, DB>,
impl<DB> Queryable<(Integer, Integer, Text, Text, Text, BigInt, BigInt, Integer, Text, Nullable<Text>), DB> for Challengewhere DB: Backend, i32: FromSql<Integer, DB>, i64: FromSql<BigInt, DB>, String: FromSql<Text, DB>,
source§impl Serialize for Challenge
impl Serialize for Challenge
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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.§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request