pub struct Deposit {Show 16 fields
pub id: String,
pub created_at: Option<OffsetDateTime>,
pub updated_at: Option<OffsetDateTime>,
pub currency: String,
pub amount: Option<Decimal>,
pub receivable_amount: Option<Decimal>,
pub state: String,
pub state_code: DepositState,
pub state_code_raw: Option<i32>,
pub sub_state_code: i32,
pub bank_operation_type_id: String,
pub bank_operation_type_name: String,
pub reference_no: String,
pub can_cancel: bool,
pub user_bank_swift_code: String,
pub voucher_count: i64,
}Expand description
A deposit record
Receipt images uploaded with the deposit are intentionally not modelled;
only their number is (Self::voucher_count).
Fields§
§id: StringRecord ID
created_at: Option<OffsetDateTime>Created time
updated_at: Option<OffsetDateTime>Updated time
currency: StringCurrency
amount: Option<Decimal>Notified (applied) amount
receivable_amount: Option<Decimal>Received amount (0 = not received yet)
state: StringState text, as returned by the server
state_code: DepositStateState code
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
sub_state_code: i32Sub-state code, as returned by the server
bank_operation_type_id: StringDeposit method ID
bank_operation_type_name: StringDeposit method name
reference_no: StringReference number
can_cancel: boolWhether the deposit can still be cancelled
user_bank_swift_code: StringSWIFT code of the paying bank
voucher_count: i64Number of receipts uploaded with the deposit (the length of the
server’s vouchers)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Deposit
impl<'de> Deserialize<'de> for Deposit
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 Deposit
impl RefUnwindSafe for Deposit
impl Send for Deposit
impl Sync for Deposit
impl Unpin for Deposit
impl UnsafeUnpin for Deposit
impl UnwindSafe for Deposit
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