pub struct Trade {
pub trade_id: u64,
pub partner: User,
pub is_active: bool,
pub status: TradeStatus,
}
Expand description
The details of a Roblox trade.
Fields§
§trade_id: u64
The id of the trade. Used for accepting, declining, … trades.
partner: User
The details of the person you’re trading with.
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<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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 Ord for Trade
impl Ord for Trade
source§impl PartialEq for Trade
impl PartialEq for Trade
source§impl PartialOrd for Trade
impl PartialOrd for Trade
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 moreimpl Eq for Trade
impl StructuralPartialEq for Trade
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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.