Struct mostro_core::order::SmallOrder
source · pub struct SmallOrder {
pub id: Option<Uuid>,
pub kind: Option<Kind>,
pub status: Option<Status>,
pub amount: i64,
pub fiat_code: String,
pub fiat_amount: i64,
pub payment_method: String,
pub premium: i64,
pub master_buyer_pubkey: Option<String>,
pub master_seller_pubkey: Option<String>,
pub buyer_invoice: Option<String>,
pub created_at: Option<i64>,
}Expand description
We use this struct to create a new order
Fields§
§id: Option<Uuid>§kind: Option<Kind>§status: Option<Status>§amount: i64§fiat_code: String§fiat_amount: i64§payment_method: String§master_buyer_pubkey: Option<String>§master_seller_pubkey: Option<String>§buyer_invoice: Option<String>§created_at: Option<i64>Implementations§
source§impl SmallOrder
impl SmallOrder
pub fn new( id: Option<Uuid>, kind: Option<Kind>, status: Option<Status>, amount: i64, fiat_code: String, fiat_amount: i64, payment_method: String, premium: i64, master_buyer_pubkey: Option<String>, master_seller_pubkey: Option<String>, buyer_invoice: Option<String>, created_at: Option<i64> ) -> Self
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 Default for SmallOrder
impl Default for SmallOrder
source§fn default() -> SmallOrder
fn default() -> SmallOrder
Returns the “default value” for a type. Read more
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