Struct CreditReferences
pub struct CreditReferences {
entries: BTreeMap<String, CreditCurveId>,
}Expand description
The credit identities a caller states for the reference entities its
trades name, keyed by the entity’s entityId or entityName.
Fields§
§entries: BTreeMap<String, CreditCurveId>Implementations§
§impl CreditReferences
impl CreditReferences
pub fn new() -> Self
pub fn new() -> Self
An empty map.
pub fn with(self, key: impl Into<String>, identity: CreditCurveId) -> Self
pub fn with(self, key: impl Into<String>, identity: CreditCurveId) -> Self
This map with key naming identity.
pub fn insert(&mut self, key: impl Into<String>, identity: CreditCurveId)
pub fn insert(&mut self, key: impl Into<String>, identity: CreditCurveId)
key names identity, replacing what it named.
pub fn resolve(&self, key: &str) -> Option<&CreditCurveId>
pub fn resolve(&self, key: &str) -> Option<&CreditCurveId>
The identity key names, or None.
Trait Implementations§
§impl Clone for CreditReferences
impl Clone for CreditReferences
§fn clone(&self) -> CreditReferences
fn clone(&self) -> CreditReferences
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 more§impl Debug for CreditReferences
impl Debug for CreditReferences
§impl Default for CreditReferences
impl Default for CreditReferences
§fn default() -> CreditReferences
fn default() -> CreditReferences
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreditReferences
impl RefUnwindSafe for CreditReferences
impl Send for CreditReferences
impl Sync for CreditReferences
impl Unpin for CreditReferences
impl UnsafeUnpin for CreditReferences
impl UnwindSafe for CreditReferences
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