Struct mostro_core::order::SmallOrder
source · pub struct SmallOrder {Show 15 fields
pub id: Option<Uuid>,
pub kind: Option<Kind>,
pub status: Option<Status>,
pub amount: i64,
pub fiat_code: String,
pub min_amount: Option<i64>,
pub max_amount: Option<i64>,
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>,
pub expires_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§min_amount: Option<i64>§max_amount: Option<i64>§fiat_amount: i64§payment_method: String§master_buyer_pubkey: Option<String>§master_seller_pubkey: Option<String>§buyer_invoice: Option<String>§created_at: Option<i64>§expires_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, min_amount: Option<i64>, max_amount: Option<i64>, 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>, expires_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 Freeze for SmallOrder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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