pub struct CategoryData {
pub id: String,
pub slug: String,
pub title: String,
pub starts_at: DateTime<Utc>,
pub ends_at: DateTime<Utc>,
pub status: String,
pub is_neg_risk: bool,
pub is_yield_bearing: bool,
pub market_data: Option<Vec<MarketData>>,
}Expand description
Category data from GraphQL API
Fields§
§id: StringCategory ID (same as slug)
slug: StringCategory slug
title: StringCategory title
starts_at: DateTime<Utc>Market start time
ends_at: DateTime<Utc>Market end time
status: StringCategory status (OPEN, RESOLVED, etc.)
is_neg_risk: boolWhether this is a neg-risk market
is_yield_bearing: boolWhether yield bearing is enabled
market_data: Option<Vec<MarketData>>Market data with strike prices (only for CryptoUpDownCategory)
Trait Implementations§
Source§impl Clone for CategoryData
impl Clone for CategoryData
Source§fn clone(&self) -> CategoryData
fn clone(&self) -> CategoryData
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 CategoryData
impl Debug for CategoryData
Source§impl<'de> Deserialize<'de> for CategoryData
impl<'de> Deserialize<'de> for CategoryData
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
Auto Trait Implementations§
impl Freeze for CategoryData
impl RefUnwindSafe for CategoryData
impl Send for CategoryData
impl Sync for CategoryData
impl Unpin for CategoryData
impl UnwindSafe for CategoryData
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more