pub struct Prediction {
pub id: String,
pub broadcaster_id: String,
pub broadcaster_name: String,
pub broadcaster_login: String,
pub title: String,
pub winning_outcome_id: Option<String>,
pub outcomes: Vec<PredictionOutcome>,
pub prediction_window: i64,
pub status: String,
pub created_at: String,
pub ended_at: Option<String>,
pub locked_at: Option<String>,
}
Fields§
§id: String
§broadcaster_id: String
§broadcaster_name: String
§broadcaster_login: String
§title: String
§winning_outcome_id: Option<String>
§outcomes: Vec<PredictionOutcome>
§prediction_window: i64
§status: String
§created_at: String
§ended_at: Option<String>
§locked_at: Option<String>
Trait Implementations§
Source§impl Clone for Prediction
impl Clone for Prediction
Source§fn clone(&self) -> Prediction
fn clone(&self) -> Prediction
Returns a duplicate 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 Prediction
impl Debug for Prediction
Source§impl<'de> Deserialize<'de> for Prediction
impl<'de> Deserialize<'de> for Prediction
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
Auto Trait Implementations§
impl Freeze for Prediction
impl RefUnwindSafe for Prediction
impl Send for Prediction
impl Sync for Prediction
impl Unpin for Prediction
impl UnwindSafe for Prediction
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