pub struct BankAccount {
pub name: Option<String>,
pub iban: Option<String>,
pub bic: Option<String>,
}Expand description
A bank account record. Schema.org base type: BankAccount.
IBAN/BIC are optional — but if either is supplied, they are validated
and warnings emitted on mismatch. The IBAN ends up under the
iso20022:iban namespaced field; BIC similarly under iso20022:bic.
Fields§
§name: Option<String>Account holder display name.
iban: Option<String>International Bank Account Number (ISO 13616).
bic: Option<String>Bank Identifier Code (ISO 9362, 8 or 11 chars).
Implementations§
Source§impl BankAccount
impl BankAccount
Sourcepub fn to_jsonld(&self) -> Value
pub fn to_jsonld(&self) -> Value
Builds the JSON-LD blob for this account.
§Examples
use ssg::seo::jsonld::iso20022::BankAccount;
let acc = BankAccount {
name: Some("Treasury".into()),
iban: Some("GB29NWBK60161331926819".into()),
bic: None,
};
let v = acc.to_jsonld();
assert_eq!(v["@type"], "BankAccount");
assert_eq!(v["iso20022:iban"], "GB29NWBK60161331926819");Trait Implementations§
Source§impl Clone for BankAccount
impl Clone for BankAccount
Source§fn clone(&self) -> BankAccount
fn clone(&self) -> BankAccount
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 BankAccount
impl Debug for BankAccount
Source§impl Default for BankAccount
impl Default for BankAccount
Source§fn default() -> BankAccount
fn default() -> BankAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BankAccount
impl<'de> Deserialize<'de> for BankAccount
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
impl Eq for BankAccount
Source§impl PartialEq for BankAccount
impl PartialEq for BankAccount
Source§fn eq(&self, other: &BankAccount) -> bool
fn eq(&self, other: &BankAccount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BankAccount
impl Serialize for BankAccount
impl StructuralPartialEq for BankAccount
Auto Trait Implementations§
impl Freeze for BankAccount
impl RefUnwindSafe for BankAccount
impl Send for BankAccount
impl Sync for BankAccount
impl Unpin for BankAccount
impl UnsafeUnpin for BankAccount
impl UnwindSafe for BankAccount
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more