pub struct TransactionMerchant {
pub id: MerchantId,
pub name: String,
pub website: Option<Url>,
}Expand description
Akahu defines a merchant as the business who was party to this transaction. For example, “The Warehouse” is a merchant.
Merchant data is provided as a name, an optional website, and a merchant
[https://developers.akahu.nz/docs/the-transaction-model#merchant]
Fields§
§id: MerchantIdA unique identifier for the merchant in the Akahu system.
Will always be prefixed with _merchant.
name: StringThe name of the merchant, for example “The Warehouse”.
website: Option<Url>The merchant’s website, if available.
Trait Implementations§
Source§impl Clone for TransactionMerchant
impl Clone for TransactionMerchant
Source§fn clone(&self) -> TransactionMerchant
fn clone(&self) -> TransactionMerchant
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 TransactionMerchant
impl Debug for TransactionMerchant
Source§impl<'de> Deserialize<'de> for TransactionMerchant
impl<'de> Deserialize<'de> for TransactionMerchant
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
Source§impl PartialEq for TransactionMerchant
impl PartialEq for TransactionMerchant
Source§impl Serialize for TransactionMerchant
impl Serialize for TransactionMerchant
impl Eq for TransactionMerchant
impl StructuralPartialEq for TransactionMerchant
Auto Trait Implementations§
impl Freeze for TransactionMerchant
impl RefUnwindSafe for TransactionMerchant
impl Send for TransactionMerchant
impl Sync for TransactionMerchant
impl Unpin for TransactionMerchant
impl UnwindSafe for TransactionMerchant
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