Struct roboat::trades::TradeDetails
source · pub struct TradeDetails {
pub partner: User,
pub your_items: Vec<TradeItem>,
pub your_robux: u64,
pub partner_items: Vec<TradeItem>,
pub partner_robux: u64,
pub created: String,
pub expiration: Option<String>,
pub is_active: bool,
pub status: TradeStatus,
}
Expand description
The details of a trade.
Fields§
§partner: User
Your partner in the trade deal.
your_items: Vec<TradeItem>
The items you’re offering.
your_robux: u64
The amount of robux you’re offering.
partner_items: Vec<TradeItem>
The items your partner is offering.
partner_robux: u64
The amount of robux your partner is offering.
created: String
The creation time of the trade in ISO 8601 format.
expiration: Option<String>
The expiration time of the trade in ISO 8601 format.
is_active: bool
Whether one of the parties can still act on the trade.
status: TradeStatus
The status of the trade.
Trait Implementations§
source§impl Clone for TradeDetails
impl Clone for TradeDetails
source§fn clone(&self) -> TradeDetails
fn clone(&self) -> TradeDetails
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 TradeDetails
impl Debug for TradeDetails
source§impl Default for TradeDetails
impl Default for TradeDetails
source§fn default() -> TradeDetails
fn default() -> TradeDetails
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TradeDetails
impl<'de> Deserialize<'de> for TradeDetails
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
source§impl Hash for TradeDetails
impl Hash for TradeDetails
source§impl Ord for TradeDetails
impl Ord for TradeDetails
source§fn cmp(&self, other: &TradeDetails) -> Ordering
fn cmp(&self, other: &TradeDetails) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TradeDetails
impl PartialEq for TradeDetails
source§fn eq(&self, other: &TradeDetails) -> bool
fn eq(&self, other: &TradeDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TradeDetails
impl PartialOrd for TradeDetails
source§fn partial_cmp(&self, other: &TradeDetails) -> Option<Ordering>
fn partial_cmp(&self, other: &TradeDetails) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TradeDetails
impl Serialize for TradeDetails
impl Eq for TradeDetails
impl StructuralPartialEq for TradeDetails
Auto Trait Implementations§
impl Freeze for TradeDetails
impl RefUnwindSafe for TradeDetails
impl Send for TradeDetails
impl Sync for TradeDetails
impl Unpin for TradeDetails
impl UnwindSafe for TradeDetails
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.