Struct Counterparties
pub struct Counterparties {
by_acronym: BTreeMap<String, Counterparty>,
}Expand description
An acronym-keyed master of counterparties, in acronym order.
Fields§
§by_acronym: BTreeMap<String, Counterparty>Implementations§
§impl Counterparties
impl Counterparties
pub fn new() -> Self
pub fn new() -> Self
An empty master.
pub fn with(self, counterparty: Counterparty) -> Self
pub fn with(self, counterparty: Counterparty) -> Self
This master with counterparty under its acronym, replacing one it held.
pub fn insert(&mut self, counterparty: Counterparty)
pub fn insert(&mut self, counterparty: Counterparty)
Adds counterparty under its acronym, replacing one it held.
pub fn resolve(&self, acronym: &str) -> Option<&Counterparty>
pub fn resolve(&self, acronym: &str) -> Option<&Counterparty>
The counterparty under acronym, or None where the master holds none.
Trait Implementations§
§impl Clone for Counterparties
impl Clone for Counterparties
§fn clone(&self) -> Counterparties
fn clone(&self) -> Counterparties
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 Counterparties
impl Debug for Counterparties
§impl Default for Counterparties
impl Default for Counterparties
§fn default() -> Counterparties
fn default() -> Counterparties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Counterparties
impl !UnwindSafe for Counterparties
impl Freeze for Counterparties
impl Send for Counterparties
impl Sync for Counterparties
impl Unpin for Counterparties
impl UnsafeUnpin for Counterparties
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