Struct mostro_core::order::SmallOrder
source · pub struct SmallOrder {
pub id: Uuid,
pub amount: i64,
pub fiat_code: String,
pub fiat_amount: i64,
pub payment_method: String,
pub premium: i64,
pub buyer_pubkey: Option<String>,
pub seller_pubkey: Option<String>,
}Expand description
Small representation of an order
Fields§
§id: Uuid§amount: i64§fiat_code: String§fiat_amount: i64§payment_method: String§buyer_pubkey: Option<String>§seller_pubkey: Option<String>Implementations§
Trait Implementations§
source§impl Clone for SmallOrder
impl Clone for SmallOrder
source§fn clone(&self) -> SmallOrder
fn clone(&self) -> SmallOrder
Returns a copy 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 SmallOrder
impl Debug for SmallOrder
source§impl<'de> Deserialize<'de> for SmallOrder
impl<'de> Deserialize<'de> for SmallOrder
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 RefUnwindSafe for SmallOrder
impl Send for SmallOrder
impl Sync for SmallOrder
impl Unpin for SmallOrder
impl UnwindSafe for SmallOrder
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