pub struct SepaDetails {
pub asset: String,
pub bank_name: String,
pub bic: SepaDetailsBic,
pub iban_last4: SepaDetailsIbanLast4,
}Expand description
Details specific to SEPA (Single Euro Payments Area) payment methods.
JSON schema
{
"description": "Details specific to SEPA (Single Euro Payments Area) payment methods.",
"examples": [
{
"asset": "eur",
"bankName": "ING Bank",
"bic": "INGBNL2A",
"ibanLast4": "4300"
}
],
"type": "object",
"required": [
"asset",
"bankName",
"bic",
"ibanLast4"
],
"properties": {
"asset": {
"description": "The asset for this payment method. Always `eur` for SEPA.",
"examples": [
"eur"
],
"type": "string"
},
"bankName": {
"description": "The name of the bank.",
"examples": [
"ING Bank"
],
"type": "string"
},
"bic": {
"description": "The Bank Identifier Code (BIC) / SWIFT code.",
"examples": [
"INGBNL2A"
],
"type": "string",
"pattern": "^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$"
},
"ibanLast4": {
"description": "The last 4 characters of the IBAN.",
"examples": [
"4300"
],
"type": "string",
"pattern": "^[A-Z0-9]{4}$"
}
}
}Fields§
§asset: StringThe asset for this payment method. Always eur for SEPA.
bank_name: StringThe name of the bank.
bic: SepaDetailsBicThe Bank Identifier Code (BIC) / SWIFT code.
iban_last4: SepaDetailsIbanLast4The last 4 characters of the IBAN.
Implementations§
Source§impl SepaDetails
impl SepaDetails
pub fn builder() -> SepaDetails
Trait Implementations§
Source§impl Clone for SepaDetails
impl Clone for SepaDetails
Source§fn clone(&self) -> SepaDetails
fn clone(&self) -> SepaDetails
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 SepaDetails
impl Debug for SepaDetails
Source§impl<'de> Deserialize<'de> for SepaDetails
impl<'de> Deserialize<'de> for SepaDetails
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<&SepaDetails> for SepaDetails
impl From<&SepaDetails> for SepaDetails
Source§fn from(value: &SepaDetails) -> Self
fn from(value: &SepaDetails) -> Self
Converts to this type from the input type.
Source§impl From<SepaDetails> for SepaDetails
impl From<SepaDetails> for SepaDetails
Source§fn from(value: SepaDetails) -> Self
fn from(value: SepaDetails) -> Self
Converts to this type from the input type.
Source§impl Serialize for SepaDetails
impl Serialize for SepaDetails
Source§impl TryFrom<SepaDetails> for SepaDetails
impl TryFrom<SepaDetails> for SepaDetails
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SepaDetails) -> Result<Self, ConversionError>
fn try_from(value: SepaDetails) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SepaDetails
impl RefUnwindSafe for SepaDetails
impl Send for SepaDetails
impl Sync for SepaDetails
impl Unpin for SepaDetails
impl UnsafeUnpin for SepaDetails
impl UnwindSafe for SepaDetails
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