#[non_exhaustive]pub enum JobResultView {
Single {
analytics: AnalyticsView,
},
Tournament {
analytics: Option<AnalyticsView>,
tournament: TournamentView,
},
}Expand description
Tagged decoded result envelope: discriminates single vs tournament vs legacy.
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.
Trait Implementations§
Source§impl Clone for JobResultView
impl Clone for JobResultView
Source§fn clone(&self) -> JobResultView
fn clone(&self) -> JobResultView
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 JobResultView
impl Debug for JobResultView
Source§impl From<JobResultView> for JsValuewhere
JobResultView: Serialize,
impl From<JobResultView> for JsValuewhere
JobResultView: Serialize,
Source§fn from(value: JobResultView) -> Self
fn from(value: JobResultView) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &JobResultViewwhere
JobResultView: Serialize,
impl IntoWasmAbi for &JobResultViewwhere
JobResultView: Serialize,
Source§impl IntoWasmAbi for JobResultViewwhere
JobResultView: Serialize,
impl IntoWasmAbi for JobResultViewwhere
JobResultView: Serialize,
Source§impl OptionIntoWasmAbi for JobResultViewwhere
JobResultView: Serialize,
impl OptionIntoWasmAbi for JobResultViewwhere
JobResultView: Serialize,
Source§impl Serialize for JobResultView
impl Serialize for JobResultView
Source§impl Tsify for JobResultView
impl Tsify for JobResultView
const DECL: &'static str = "/**\n * Tagged decoded result envelope: discriminates single vs tournament vs legacy.\n */\nexport type JobResultView = { kind: \"single\"; analytics: AnalyticsView } | { kind: \"tournament\"; analytics: AnalyticsView | undefined; tournament: TournamentView };"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for JobResultViewwhere
JobResultView: Serialize,
impl VectorIntoWasmAbi for JobResultViewwhere
JobResultView: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for JobResultView
impl WasmDescribe for JobResultView
Source§impl WasmDescribeVector for JobResultView
impl WasmDescribeVector for JobResultView
Auto Trait Implementations§
impl Freeze for JobResultView
impl RefUnwindSafe for JobResultView
impl Send for JobResultView
impl Sync for JobResultView
impl Unpin for JobResultView
impl UnsafeUnpin for JobResultView
impl UnwindSafe for JobResultView
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§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.