pub struct EmailInstrument {
pub asset: Asset,
pub email: Email,
}Expand description
The target of the payment is an email address.
JSON schema
{
"title": "Email Instrument",
"description": "The target of the payment is an email address.",
"examples": [
{
"asset": "usd",
"email": "recipient@example.com"
}
],
"allOf": [
{
"$ref": "#/components/schemas/EmailAddress"
},
{
"type": "object",
"required": [
"asset"
],
"properties": {
"asset": {
"description": "Asset symbol of the payment received by the recipient.",
"allOf": [
{
"$ref": "#/components/schemas/Asset"
}
]
}
}
}
]
}Fields§
§asset: AssetAsset symbol of the payment received by the recipient.
email: EmailThe email address of the recipient. The recipient will need to have an account with Coinbase or onboard to Coinbase to receive the payment.
Implementations§
Source§impl EmailInstrument
impl EmailInstrument
pub fn builder() -> EmailInstrument
Trait Implementations§
Source§impl Clone for EmailInstrument
impl Clone for EmailInstrument
Source§fn clone(&self) -> EmailInstrument
fn clone(&self) -> EmailInstrument
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 moreSource§impl Debug for EmailInstrument
impl Debug for EmailInstrument
Source§impl<'de> Deserialize<'de> for EmailInstrument
impl<'de> Deserialize<'de> for EmailInstrument
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 From<&EmailInstrument> for EmailInstrument
impl From<&EmailInstrument> for EmailInstrument
Source§fn from(value: &EmailInstrument) -> Self
fn from(value: &EmailInstrument) -> Self
Converts to this type from the input type.
Source§impl From<EmailInstrument> for EmailInstrument
impl From<EmailInstrument> for EmailInstrument
Source§fn from(value: EmailInstrument) -> Self
fn from(value: EmailInstrument) -> Self
Converts to this type from the input type.
Source§impl From<EmailInstrument> for TransferTarget
impl From<EmailInstrument> for TransferTarget
Source§fn from(value: EmailInstrument) -> Self
fn from(value: EmailInstrument) -> Self
Converts to this type from the input type.
Source§impl Serialize for EmailInstrument
impl Serialize for EmailInstrument
Source§impl TryFrom<EmailInstrument> for EmailInstrument
impl TryFrom<EmailInstrument> for EmailInstrument
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EmailInstrument) -> Result<Self, ConversionError>
fn try_from(value: EmailInstrument) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EmailInstrument
impl RefUnwindSafe for EmailInstrument
impl Send for EmailInstrument
impl Sync for EmailInstrument
impl Unpin for EmailInstrument
impl UnsafeUnpin for EmailInstrument
impl UnwindSafe for EmailInstrument
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