pub struct CounterpartyPool {
pub merchants: Vec<Merchant>,
pub employers: Vec<Employer>,
pub utilities: Vec<UtilityCompany>,
pub government_agencies: Vec<GovernmentAgency>,
}Expand description
Pool of counterparties for transaction generation.
Fields§
§merchants: Vec<Merchant>Merchants
employers: Vec<Employer>Employers
utilities: Vec<UtilityCompany>Utilities
government_agencies: Vec<GovernmentAgency>Government agencies
Implementations§
Source§impl CounterpartyPool
impl CounterpartyPool
Sourcepub fn add_merchant(&mut self, merchant: Merchant)
pub fn add_merchant(&mut self, merchant: Merchant)
Add a merchant.
Sourcepub fn add_employer(&mut self, employer: Employer)
pub fn add_employer(&mut self, employer: Employer)
Add an employer.
Sourcepub fn add_utility(&mut self, utility: UtilityCompany)
pub fn add_utility(&mut self, utility: UtilityCompany)
Add a utility.
Sourcepub fn add_government(&mut self, agency: GovernmentAgency)
pub fn add_government(&mut self, agency: GovernmentAgency)
Add a government agency.
Trait Implementations§
Source§impl Clone for CounterpartyPool
impl Clone for CounterpartyPool
Source§fn clone(&self) -> CounterpartyPool
fn clone(&self) -> CounterpartyPool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CounterpartyPool
impl Debug for CounterpartyPool
Source§impl Default for CounterpartyPool
impl Default for CounterpartyPool
Source§fn default() -> CounterpartyPool
fn default() -> CounterpartyPool
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CounterpartyPool
impl RefUnwindSafe for CounterpartyPool
impl Send for CounterpartyPool
impl Sync for CounterpartyPool
impl Unpin for CounterpartyPool
impl UnwindSafe for CounterpartyPool
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