pub struct CounterpartyRef {
pub counterparty_type: CounterpartyType,
pub counterparty_id: Option<Uuid>,
pub name: String,
pub account_identifier: Option<String>,
pub bank_identifier: Option<String>,
pub country: Option<String>,
}Expand description
Reference to a counterparty.
Fields§
§counterparty_type: CounterpartyTypeCounterparty type
counterparty_id: Option<Uuid>Counterparty ID (if known)
name: StringCounterparty name
account_identifier: Option<String>Account identifier (masked)
bank_identifier: Option<String>Bank identifier (BIC/SWIFT)
country: Option<String>Country (ISO 3166-1 alpha-2)
Implementations§
Source§impl CounterpartyRef
impl CounterpartyRef
Sourcepub fn self_account(account_id: Uuid, account_name: &str) -> Self
pub fn self_account(account_id: Uuid, account_name: &str) -> Self
Create a self-transfer counterparty.
Sourcepub fn international(name: &str) -> Self
pub fn international(name: &str) -> Self
Create an international counterparty.
Sourcepub fn crypto_exchange(name: &str) -> Self
pub fn crypto_exchange(name: &str) -> Self
Create a crypto exchange counterparty.
Sourcepub fn merchant_by_name(name: &str, _mcc: &str) -> Self
pub fn merchant_by_name(name: &str, _mcc: &str) -> Self
Create a merchant counterparty by name only.
Trait Implementations§
Source§impl Clone for CounterpartyRef
impl Clone for CounterpartyRef
Source§fn clone(&self) -> CounterpartyRef
fn clone(&self) -> CounterpartyRef
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 CounterpartyRef
impl Debug for CounterpartyRef
Source§impl<'de> Deserialize<'de> for CounterpartyRef
impl<'de> Deserialize<'de> for CounterpartyRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CounterpartyRef
impl RefUnwindSafe for CounterpartyRef
impl Send for CounterpartyRef
impl Sync for CounterpartyRef
impl Unpin for CounterpartyRef
impl UnwindSafe for CounterpartyRef
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