pub struct SellOrder {
pub id: String,
pub seller: String,
pub sell_currency: String,
pub sell_amount: u64,
pub buy_currency: String,
pub price: u64,
pub created_at: u64,
}Expand description
A sell order on the order book.
Fields§
§id: String§seller: StringSeller identity: did:nostr:<hex-pubkey>.
sell_currency: StringCurrency the seller is offering (e.g. "tbtc4").
sell_amount: u64Amount of sell_currency offered.
buy_currency: StringCurrency the seller wants in return (e.g. "tbtc3").
price: u64Price: buy_currency units per sell_currency unit.
created_at: u64Unix timestamp when the order was created.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SellOrder
impl<'de> Deserialize<'de> for SellOrder
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 SellOrder
impl RefUnwindSafe for SellOrder
impl Send for SellOrder
impl Sync for SellOrder
impl Unpin for SellOrder
impl UnsafeUnpin for SellOrder
impl UnwindSafe for SellOrder
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