pub struct SettlementScheme { /* private fields */ }Expand description
Settlement delays for delivery and payment legs of an instrument.
Implementations§
Source§impl SettlementScheme
impl SettlementScheme
Sourcepub const fn new(delivery: SettlementLag, payment: SettlementLag) -> Self
pub const fn new(delivery: SettlementLag, payment: SettlementLag) -> Self
Creates a scheme with independently configured delivery and payment lags.
Sourcepub const fn uniform(n: u64) -> Self
pub const fn uniform(n: u64) -> Self
Creates a scheme where both legs settle after n business days.
Sourcepub const fn delivery(self) -> SettlementLag
pub const fn delivery(self) -> SettlementLag
Returns the delivery leg’s settlement delay.
Sourcepub const fn payment(self) -> SettlementLag
pub const fn payment(self) -> SettlementLag
Returns the payment leg’s settlement delay.
Trait Implementations§
Source§impl Clone for SettlementScheme
impl Clone for SettlementScheme
Source§fn clone(&self) -> SettlementScheme
fn clone(&self) -> SettlementScheme
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 moreimpl Copy for SettlementScheme
Source§impl Debug for SettlementScheme
impl Debug for SettlementScheme
Source§impl Default for SettlementScheme
impl Default for SettlementScheme
Source§fn default() -> SettlementScheme
fn default() -> SettlementScheme
Returns the “default value” for a type. Read more
impl Eq for SettlementScheme
Source§impl Hash for SettlementScheme
impl Hash for SettlementScheme
Source§impl PartialEq for SettlementScheme
impl PartialEq for SettlementScheme
impl StructuralPartialEq for SettlementScheme
Auto Trait Implementations§
impl Freeze for SettlementScheme
impl RefUnwindSafe for SettlementScheme
impl Send for SettlementScheme
impl Sync for SettlementScheme
impl Unpin for SettlementScheme
impl UnsafeUnpin for SettlementScheme
impl UnwindSafe for SettlementScheme
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