[][src]Struct botfair::generated_types::ExposureLimit

pub struct ExposureLimit {
    pub matched: Option<f64>,
    pub total: Option<f64>,
    pub limitBreachAction: Option<LimitBreachAction>,
}

Exposure limit and limit breach action. Not populating one of total or matched parameters indicates that no limit should be set for that exposure value. A special use of this type is when none of its parameters are populated, this can be used to override default limit to "no limit" for a specific instance of market group (see setExposureLimitForMarketGroup operation)

Fields

matched: Option<f64>total: Option<f64>limitBreachAction: Option<LimitBreachAction>

Trait Implementations

impl Debug for ExposureLimit[src]

impl Serialize for ExposureLimit[src]

impl<'de> Deserialize<'de> for ExposureLimit[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err