#[non_exhaustive]pub struct PredictionTopPredictors {
pub id: UserId,
pub name: DisplayName,
pub login: UserName,
pub channel_points_used: i64,
pub channel_points_won: Option<i64>,
}
Available on crate feature
points
only.Expand description
Users who were the top predictors.
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: UserId
ID of the user.
name: DisplayName
Display name of the user.
login: UserName
Login of the user.
channel_points_used: i64
Number of Channel Points used by the user.
channel_points_won: Option<i64>
Number of Channel Points won by the user.
This value is always null in the event payload for Prediction progress and Prediction lock. This value is 0 if the outcome did not win or if the Prediction was canceled and Channel Points were refunded.
Trait Implementations§
Source§impl Clone for PredictionTopPredictors
impl Clone for PredictionTopPredictors
Source§fn clone(&self) -> PredictionTopPredictors
fn clone(&self) -> PredictionTopPredictors
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 PredictionTopPredictors
impl Debug for PredictionTopPredictors
Source§impl<'de> Deserialize<'de> for PredictionTopPredictors
impl<'de> Deserialize<'de> for PredictionTopPredictors
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 PredictionTopPredictors
impl PartialEq for PredictionTopPredictors
Source§impl Serialize for PredictionTopPredictors
impl Serialize for PredictionTopPredictors
impl Eq for PredictionTopPredictors
impl StructuralPartialEq for PredictionTopPredictors
Auto Trait Implementations§
impl Freeze for PredictionTopPredictors
impl RefUnwindSafe for PredictionTopPredictors
impl Send for PredictionTopPredictors
impl Sync for PredictionTopPredictors
impl Unpin for PredictionTopPredictors
impl UnwindSafe for PredictionTopPredictors
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
)