Struct twitch_api::helix::predictions::get_predictions::PredictionOutcome
source · [−]#[non_exhaustive]pub struct PredictionOutcome {
pub id: String,
pub title: String,
pub users: Option<i64>,
pub channel_points: Option<i64>,
pub top_predictors: Option<Vec<PredictionTopPredictors, Global>>,
pub color: String,
}
Available on crate feature
helix
only.Expand description
Outcome for the Prediction
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
ID for the outcome.
title: String
Text displayed for outcome.
users: Option<i64>
Number of unique users that chose the outcome.
channel_points: Option<i64>
Number of Channel Points used for the outcome.
top_predictors: Option<Vec<PredictionTopPredictors, Global>>
Array of users who were the top predictors. null if none. Top 10
color: String
Color for the outcome. Valid values: BLUE, PINK
Trait Implementations
sourceimpl Clone for PredictionOutcome
impl Clone for PredictionOutcome
sourcefn clone(&self) -> PredictionOutcome
fn clone(&self) -> PredictionOutcome
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PredictionOutcome
impl Debug for PredictionOutcome
sourceimpl<'de> Deserialize<'de> for PredictionOutcome
impl<'de> Deserialize<'de> for PredictionOutcome
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<PredictionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PredictionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PredictionOutcome> for PredictionOutcome
impl PartialEq<PredictionOutcome> for PredictionOutcome
sourcefn eq(&self, other: &PredictionOutcome) -> bool
fn eq(&self, other: &PredictionOutcome) -> bool
sourceimpl Serialize for PredictionOutcome
impl Serialize for PredictionOutcome
sourcefn 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 PredictionOutcome
impl StructuralEq for PredictionOutcome
impl StructuralPartialEq for PredictionOutcome
Auto Trait Implementations
impl RefUnwindSafe for PredictionOutcome
impl Send for PredictionOutcome
impl Sync for PredictionOutcome
impl Unpin for PredictionOutcome
impl UnwindSafe for PredictionOutcome
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.