pub struct Withdrawal {Show 15 fields
pub id: String,
pub order_id: String,
pub created_at: Option<OffsetDateTime>,
pub currency: String,
pub amount: Option<Decimal>,
pub fee: Option<Decimal>,
pub settlement_amount: Option<Decimal>,
pub state_code: WithdrawalState,
pub state_code_raw: Option<i32>,
pub raw_state: String,
pub state_description: String,
pub bank_account: String,
pub display_bank_account: String,
pub user_bank_swift_code: String,
pub account_channel: String,
}Expand description
A withdrawal record
Fields§
§id: StringRecord ID
order_id: StringOrder ID
created_at: Option<OffsetDateTime>Created time
currency: StringCurrency
amount: Option<Decimal>Applied amount
fee: Option<Decimal>Fee
settlement_amount: Option<Decimal>Amount paid out
state_code: WithdrawalStateState code (the server’s state)
state_code_raw: Option<i32>The server’s numeric code of state_code, also when it is a code this
SDK does not know (state_code is then Unknown); None when the
value is missing or is not a code
raw_state: StringRaw state, as returned by the server
state_description: StringState display text, as returned by the server
bank_account: StringReceiving bank account number, as returned by the server (not masked)
display_bank_account: StringReceiving bank account, as displayed in the app
user_bank_swift_code: StringSWIFT code of the receiving bank
account_channel: StringAccount channel
Implementations§
Source§impl Withdrawal
impl Withdrawal
pub fn serialize<__S>(
__self: &Withdrawal,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> Withdrawalwhere
Withdrawal: Default,
impl<'de> Withdrawalwhere
Withdrawal: Default,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Withdrawal, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for Withdrawal
impl Clone for Withdrawal
Source§impl Debug for Withdrawal
impl Debug for Withdrawal
Source§impl Default for Withdrawal
impl Default for Withdrawal
Source§impl<'de> Deserialize<'de> for Withdrawal
impl<'de> Deserialize<'de> for Withdrawal
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Withdrawal
impl RefUnwindSafe for Withdrawal
impl Send for Withdrawal
impl Sync for Withdrawal
impl Unpin for Withdrawal
impl UnsafeUnpin for Withdrawal
impl UnwindSafe for Withdrawal
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<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> ⓘ
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