pub struct StandInTrade(/* private fields */);Expand description
A trade with the keys of TradeAccounts::with_stand_in_trader.
MarketHooks::screen takes
only this type.
Methods from Deref<Target = TradeAccounts>§
Sourcepub fn with_stand_in_trader(self) -> StandInTrade
pub fn with_stand_in_trader(self) -> StandInTrade
Sets user, payer, user_base_account and user_quote_account to
fixed keys that no wallet holds.
Trait Implementations§
Source§impl Clone for StandInTrade
impl Clone for StandInTrade
impl Copy for StandInTrade
Source§impl Debug for StandInTrade
impl Debug for StandInTrade
Source§impl Deref for StandInTrade
impl Deref for StandInTrade
Source§type Target = TradeAccounts
type Target = TradeAccounts
The resulting type after dereferencing.
Source§fn deref(&self) -> &TradeAccounts
fn deref(&self) -> &TradeAccounts
Dereferences the value.
impl Eq for StandInTrade
Source§impl PartialEq for StandInTrade
impl PartialEq for StandInTrade
impl StructuralPartialEq for StandInTrade
Auto Trait Implementations§
impl Freeze for StandInTrade
impl RefUnwindSafe for StandInTrade
impl Send for StandInTrade
impl Sync for StandInTrade
impl Unpin for StandInTrade
impl UnsafeUnpin for StandInTrade
impl UnwindSafe for StandInTrade
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