pub struct PaymentMethodLimits {
pub source_limit: Option<PaymentMethodLimitsSourceLimit>,
pub target_limit: Option<PaymentMethodLimitsTargetLimit>,
}
Expand description
The limits of the payment method.
JSON schema
{
"description": "The limits of the payment method.",
"examples": [
{
"sourceLimit": {
"currency": "USD",
"value": "100.00"
},
"targetLimit": {
"currency": "USD",
"value": "100.00"
}
}
],
"type": "object",
"properties": {
"sourceLimit": {
"description": "The limit for this payment method being used as a source for transfers.",
"type": "object",
"properties": {
"amount": {
"description": "The amount of the limit.",
"examples": [
"100"
],
"type": "string"
},
"currency": {
"description": "The currency of the limit.",
"examples": [
"USD"
],
"type": "string"
}
}
},
"targetLimit": {
"description": "The limit for this payment method being used as a target for transfers.",
"type": "object",
"properties": {
"amount": {
"description": "The amount of the limit.",
"examples": [
"100"
],
"type": "string"
},
"currency": {
"description": "The currency of the limit.",
"examples": [
"USD"
],
"type": "string"
}
}
}
}
}
Fields§
§source_limit: Option<PaymentMethodLimitsSourceLimit>
§target_limit: Option<PaymentMethodLimitsTargetLimit>
Implementations§
Source§impl PaymentMethodLimits
impl PaymentMethodLimits
pub fn builder() -> PaymentMethodLimits
Trait Implementations§
Source§impl Clone for PaymentMethodLimits
impl Clone for PaymentMethodLimits
Source§fn clone(&self) -> PaymentMethodLimits
fn clone(&self) -> PaymentMethodLimits
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 PaymentMethodLimits
impl Debug for PaymentMethodLimits
Source§impl Default for PaymentMethodLimits
impl Default for PaymentMethodLimits
Source§impl<'de> Deserialize<'de> for PaymentMethodLimits
impl<'de> Deserialize<'de> for PaymentMethodLimits
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<&PaymentMethodLimits> for PaymentMethodLimits
impl From<&PaymentMethodLimits> for PaymentMethodLimits
Source§fn from(value: &PaymentMethodLimits) -> Self
fn from(value: &PaymentMethodLimits) -> Self
Converts to this type from the input type.
Source§impl From<PaymentMethodLimits> for PaymentMethodLimits
impl From<PaymentMethodLimits> for PaymentMethodLimits
Source§fn from(value: PaymentMethodLimits) -> Self
fn from(value: PaymentMethodLimits) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentMethodLimits
impl Serialize for PaymentMethodLimits
Source§impl TryFrom<PaymentMethodLimits> for PaymentMethodLimits
impl TryFrom<PaymentMethodLimits> for PaymentMethodLimits
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentMethodLimits) -> Result<Self, ConversionError>
fn try_from(value: PaymentMethodLimits) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentMethodLimits
impl RefUnwindSafe for PaymentMethodLimits
impl Send for PaymentMethodLimits
impl Sync for PaymentMethodLimits
impl Unpin for PaymentMethodLimits
impl UnwindSafe for PaymentMethodLimits
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