pub struct NavigationFilter {
pub event_type_ids: Option<Vec<String>>,
pub event_type_names: Option<Vec<String>>,
pub event_ids: Option<Vec<String>>,
pub country_codes: Option<Vec<String>>,
pub market_types: Option<Vec<String>>,
pub market_ids: Option<Vec<String>>,
pub min_market_start_time: Option<String>,
pub max_market_start_time: Option<String>,
}Expand description
Filters for selecting markets from the Betfair navigation tree.
All fields use AND-logic: a market must match every provided filter.
None fields impose no constraint.
Fields§
§event_type_ids: Option<Vec<String>>Event type IDs to include (e.g., “7” for Horse Racing).
event_type_names: Option<Vec<String>>Event type names to include (e.g., “Horse Racing”).
event_ids: Option<Vec<String>>Event IDs to include.
country_codes: Option<Vec<String>>Country codes to include (e.g., “GB”, “AU”).
market_types: Option<Vec<String>>Market types to include (e.g., “WIN”, “PLACE”).
market_ids: Option<Vec<String>>Specific market IDs to include.
min_market_start_time: Option<String>Minimum market start time (ISO 8601 date, e.g. “2024-01-15T00:00:00Z”).
max_market_start_time: Option<String>Maximum market start time (ISO 8601 date, e.g. “2024-12-31T00:00:00Z”).
Implementations§
Sourcepub fn matches(&self, market: &FlattenedMarket) -> bool
pub fn matches(&self, market: &FlattenedMarket) -> bool
Returns true if the given market passes all filter criteria.
Trait Implementations§
Source§fn clone(&self) -> NavigationFilter
fn clone(&self) -> NavigationFilter
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§fn default() -> NavigationFilter
fn default() -> NavigationFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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