#[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>>,
pub color: String,
}
Available on crate feature
points
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>>
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§
Source§impl Clone for PredictionOutcome
impl Clone for PredictionOutcome
Source§fn clone(&self) -> PredictionOutcome
fn clone(&self) -> PredictionOutcome
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PredictionOutcome
impl Debug for PredictionOutcome
Source§impl<'de> Deserialize<'de> for PredictionOutcome
impl<'de> Deserialize<'de> for PredictionOutcome
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 PartialEq for PredictionOutcome
impl PartialEq for PredictionOutcome
Source§impl Serialize for PredictionOutcome
impl Serialize for PredictionOutcome
impl Eq for PredictionOutcome
impl StructuralPartialEq for PredictionOutcome
Auto Trait Implementations§
impl Freeze for PredictionOutcome
impl RefUnwindSafe for PredictionOutcome
impl Send for PredictionOutcome
impl Sync for PredictionOutcome
impl Unpin for PredictionOutcome
impl UnwindSafe for PredictionOutcome
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)