Struct Context
pub(crate) struct Context<'a> {
pub(crate) us: String,
counterparty: Option<&'a Counterparty>,
pub(crate) credit: Option<&'a CreditReferences>,
pub(crate) securities: Option<&'a Securities>,
}Expand description
What every product mapper reads besides its own element.
Fields§
§us: StringThe reporting party’s id attribute, as party references href it.
counterparty: Option<&'a Counterparty>The counterparty’s master entry, where a master was supplied.
credit: Option<&'a CreditReferences>The credit identities, where a map was supplied.
securities: Option<&'a Securities>The security master, where one was supplied.
Implementations§
§impl Context<'_>
impl Context<'_>
pub(crate) fn collateral(&self, currency: Currency) -> CollateralSpec
pub(crate) fn collateral(&self, currency: Currency) -> CollateralSpec
The collateral a component in currency discounts under: the
counterparty’s CSA where a master names it, the currency’s own
otherwise.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
impl<'a> Freeze for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
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