pub struct VoucherData {
pub amount: u64,
pub code: String,
pub created_at: DateTime<Utc>,
pub create_transaction_id: String,
pub description: String,
pub fee: Option<u64>,
pub id: String,
pub unit: UnitType,
pub wallet_id: String,
}
Fields§
§amount: u64
§code: String
§created_at: DateTime<Utc>
§create_transaction_id: String
§description: String
§fee: Option<u64>
§id: String
§unit: UnitType
§wallet_id: String
Trait Implementations§
Source§impl Clone for VoucherData
impl Clone for VoucherData
Source§fn clone(&self) -> VoucherData
fn clone(&self) -> VoucherData
Returns a duplicate of the value. Read more
1.0.0 · 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 VoucherData
impl Debug for VoucherData
Source§impl<'de> Deserialize<'de> for VoucherData
impl<'de> Deserialize<'de> for VoucherData
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
Auto Trait Implementations§
impl Freeze for VoucherData
impl RefUnwindSafe for VoucherData
impl Send for VoucherData
impl Sync for VoucherData
impl Unpin for VoucherData
impl UnwindSafe for VoucherData
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