#[non_exhaustive]pub struct EventOutcome {
pub key: MarketKey,
pub market: String,
pub market_title: Option<String>,
pub label: String,
}Expand description
One outcome of an event: a key of its own, in one of the event’s markets.
Like Level, it is a value inside a record, an EventGroup, and not a
record of its own, so it carries no Extensions.
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.key: MarketKeyThe outcome’s key.
market: StringThe venue’s id for the market the outcome is in.
market_title: Option<String>The market’s title, when it has one.
label: StringThe outcome’s label, such as Yes.
Implementations§
Trait Implementations§
Source§impl Clone for EventOutcome
impl Clone for EventOutcome
Source§impl Debug for EventOutcome
impl Debug for EventOutcome
impl Eq for EventOutcome
Source§impl Hash for EventOutcome
impl Hash for EventOutcome
Source§impl PartialEq for EventOutcome
impl PartialEq for EventOutcome
impl StructuralPartialEq for EventOutcome
Auto Trait Implementations§
impl Freeze for EventOutcome
impl RefUnwindSafe for EventOutcome
impl Send for EventOutcome
impl Sync for EventOutcome
impl Unpin for EventOutcome
impl UnsafeUnpin for EventOutcome
impl UnwindSafe for EventOutcome
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