#[non_exhaustive]
pub enum PredictionStatus {
Resolved,
Active,
Canceled,
Locked,
}
Available on crate feature
helix
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
sourceimpl Clone for PredictionStatus
impl Clone for PredictionStatus
sourcefn clone(&self) -> PredictionStatus
fn clone(&self) -> PredictionStatus
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 PredictionStatus
impl Debug for PredictionStatus
sourceimpl<'de> Deserialize<'de> for PredictionStatus
impl<'de> Deserialize<'de> for PredictionStatus
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<PredictionStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PredictionStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PredictionStatus> for PredictionStatus
impl PartialEq<PredictionStatus> for PredictionStatus
sourcefn eq(&self, other: &PredictionStatus) -> bool
fn eq(&self, other: &PredictionStatus) -> bool
sourceimpl Serialize for PredictionStatus
impl Serialize for PredictionStatus
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 PredictionStatus
impl StructuralEq for PredictionStatus
impl StructuralPartialEq for PredictionStatus
Auto Trait Implementations
impl RefUnwindSafe for PredictionStatus
impl Send for PredictionStatus
impl Sync for PredictionStatus
impl Unpin for PredictionStatus
impl UnwindSafe for PredictionStatus
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.