pub struct Deposit {
pub id: String,
pub chain: String,
pub depositor: String,
pub provider: String,
pub amount: Decimal,
pub status: DepositStatus,
pub expiry: u64,
pub expires_at: Option<DateTime<Utc>>,
pub tx_hash: String,
pub created_at: DateTime<Utc>,
}Expand description
Security deposit held as collateral.
Fields§
§id: String§chain: String§depositor: String§provider: String§amount: Decimal§status: DepositStatus§expiry: u64§expires_at: Option<DateTime<Utc>>§tx_hash: String§created_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Deposit
impl<'de> Deserialize<'de> for Deposit
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 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