#[non_exhaustive]pub enum PredictionStatus {
Resolved,
Active,
Canceled,
Locked,
}
Available on crate feature
points
only.Expand description
Status of the Prediction
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Resolved
A winning outcome has been chosen and the Channel Points have been distributed to the users who guessed the correct outcome.
Active
The Prediction is active and viewers can make predictions.
Canceled
The Prediction has been canceled and the Channel Points have been refunded to participants.
Locked
The Prediction has been locked and viewers can no longer make predictions.
Trait Implementations§
Source§impl Clone for PredictionStatus
impl Clone for PredictionStatus
Source§fn clone(&self) -> PredictionStatus
fn clone(&self) -> PredictionStatus
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 PredictionStatus
impl Debug for PredictionStatus
Source§impl<'de> Deserialize<'de> for PredictionStatus
impl<'de> Deserialize<'de> for PredictionStatus
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 PredictionStatus
impl PartialEq for PredictionStatus
Source§impl Serialize for PredictionStatus
impl Serialize for PredictionStatus
impl Eq for PredictionStatus
impl StructuralPartialEq for PredictionStatus
Auto Trait Implementations§
impl Freeze for PredictionStatus
impl RefUnwindSafe for PredictionStatus
impl Send for PredictionStatus
impl Sync for PredictionStatus
impl Unpin for PredictionStatus
impl UnwindSafe for PredictionStatus
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
)