pub struct BankCard {Show 24 fields
pub id: String,
pub bank_id: String,
pub bank: String,
pub bank_en: String,
pub bank_code: String,
pub account: String,
pub account_type: String,
pub country: String,
pub country_display: String,
pub region: String,
pub region_name: String,
pub swift_code: String,
pub remark: String,
pub status: BankCardStatus,
pub status_raw: Option<i32>,
pub witness_state: BankCardWitnessState,
pub witness_state_raw: Option<i32>,
pub support_witness: bool,
pub bind_state: BankCardBindState,
pub bind_state_raw: Option<i32>,
pub bind_tip: String,
pub withdraw_fee: String,
pub created_at: Option<OffsetDateTime>,
pub auth_list: Vec<BankCardAuthorization>,
}Expand description
A linked bank card
The server also returns the card holder’s name and postal address and the storage keys of uploaded ID documents; those are intentionally not modelled.
Fields§
§id: StringBank card ID (pass to crate::AssetContext::edda_applications)
bank_id: StringBank ID
bank: StringBank name
bank_en: StringBank name in English
bank_code: StringBank code
account: StringBank account number, as returned by the server (not masked)
account_type: StringAccount type
country: StringCountry or region of the bank (e.g. Hong Kong; not a currency)
country_display: StringCountry or region as displayed in the app, as returned by the server
region: StringRegion code
region_name: StringRegion name
swift_code: StringSWIFT code
remark: StringRemark
status: BankCardStatusVerification status
status_raw: Option<i32>The server’s numeric code of status, also when it is a code this SDK
does not know (status is then Unknown); None when the value is
missing or is not a code
witness_state: BankCardWitnessStateWitness state
witness_state_raw: Option<i32>The server’s numeric code of witness_state, also when it is a code
this SDK does not know (witness_state is then Unknown); None when
the value is missing or is not a code
support_witness: boolWhether the card supports witnessing
bind_state: BankCardBindStateBinding state
bind_state_raw: Option<i32>The server’s numeric code of bind_state, also when it is a code this
SDK does not know (bind_state is then Unknown); None when the
value is missing or is not a code
bind_tip: StringBinding hint text
withdraw_fee: StringWithdrawal fee text, as returned by the server
created_at: Option<OffsetDateTime>Time the card was added
auth_list: Vec<BankCardAuthorization>Authorizations attached to the card
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BankCard
impl<'de> Deserialize<'de> for BankCard
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Auto Trait Implementations§
impl Freeze for BankCard
impl RefUnwindSafe for BankCard
impl Send for BankCard
impl Sync for BankCard
impl Unpin for BankCard
impl UnsafeUnpin for BankCard
impl UnwindSafe for BankCard
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
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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