#[non_exhaustive]pub struct NotionalConstraints {
pub min_notional: Option<Decimal>,
pub max_notional: Option<Decimal>,
pub apply_min_to_market: Option<bool>,
pub apply_max_to_market: Option<bool>,
}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.min_notional: Option<Decimal>§max_notional: Option<Decimal>§apply_min_to_market: Option<bool>§apply_max_to_market: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for NotionalConstraints
impl Clone for NotionalConstraints
Source§fn clone(&self) -> NotionalConstraints
fn clone(&self) -> NotionalConstraints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotionalConstraints
impl Debug for NotionalConstraints
Source§impl PartialEq for NotionalConstraints
impl PartialEq for NotionalConstraints
Source§fn eq(&self, other: &NotionalConstraints) -> bool
fn eq(&self, other: &NotionalConstraints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotionalConstraints
Auto Trait Implementations§
impl Freeze for NotionalConstraints
impl RefUnwindSafe for NotionalConstraints
impl Send for NotionalConstraints
impl Sync for NotionalConstraints
impl Unpin for NotionalConstraints
impl UnsafeUnpin for NotionalConstraints
impl UnwindSafe for NotionalConstraints
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