Struct RoleLeg
pub struct RoleLeg {
pub leg: Leg,
pub role: LegRole,
pub collateral: CollateralSpec,
}Expand description
One leg of a credit-linked swap: the compiled leg, its role, and the collateral key it discounts on.
Fields§
§leg: LegThe leg, signed by its own direction.
role: LegRoleHow the leg depends on the entity’s default.
collateral: CollateralSpecThe discount key for the leg’s payments — its own currency’s cash, or that currency collateralised in another.
Implementations§
Trait Implementations§
impl StructuralPartialEq for RoleLeg
Auto Trait Implementations§
impl Freeze for RoleLeg
impl RefUnwindSafe for RoleLeg
impl Send for RoleLeg
impl Sync for RoleLeg
impl Unpin for RoleLeg
impl UnsafeUnpin for RoleLeg
impl UnwindSafe for RoleLeg
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