pub struct SubscribeAccountOrders {
pub market: Option<String>,
pub buy_or_sell: Option<BuyOrSell>,
pub status: Option<Vec<OrderStatus>>,
pub order_type: Option<Vec<OrderType>>,
pub range: Option<DateTimeRange>,
}Expand description
Initiate subscription to get new orders for an account
Fields§
§market: Option<String>§buy_or_sell: Option<BuyOrSell>§status: Option<Vec<OrderStatus>>§order_type: Option<Vec<OrderType>>§range: Option<DateTimeRange>Implementations§
Source§impl SubscribeAccountOrders
impl SubscribeAccountOrders
pub fn make_query(&self) -> QueryBody<Variables>
Source§impl SubscribeAccountOrders
impl SubscribeAccountOrders
pub async fn response_from_graphql( &self, response: ResponseOrError<ResponseData>, _state: Arc<RwLock<State>>, ) -> Result<ResponseOrError<AccountOrdersResponse>>
Trait Implementations§
Source§impl Clone for SubscribeAccountOrders
impl Clone for SubscribeAccountOrders
Source§fn clone(&self) -> SubscribeAccountOrders
fn clone(&self) -> SubscribeAccountOrders
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubscribeAccountOrders
impl Debug for SubscribeAccountOrders
Source§impl From<AccountOrders> for SubscribeAccountOrders
impl From<AccountOrders> for SubscribeAccountOrders
Source§fn from(account_orders: AccountOrders) -> Self
fn from(account_orders: AccountOrders) -> Self
Converts to this type from the input type.
Source§impl NashProtocolSubscription for SubscribeAccountOrders
impl NashProtocolSubscription for SubscribeAccountOrders
type SubscriptionResponse = AccountOrdersResponse
Source§fn graphql<'life0, 'async_trait>(
&'life0 self,
_state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn graphql<'life0, 'async_trait>(
&'life0 self,
_state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Convert the protocol request to GraphQL from communication with Nash server
Source§fn subscription_response_from_json<'life0, 'async_trait>(
&'life0 self,
response: Value,
state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<ResponseOrError<Self::SubscriptionResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscription_response_from_json<'life0, 'async_trait>(
&'life0 self,
response: Value,
state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<ResponseOrError<Self::SubscriptionResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Convert JSON response from incoming subscription data into protocol’s associated type
fn wrap_response_as_any_subscription<'life0, 'async_trait>(
&'life0 self,
response: Value,
state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<ResponseOrError<SubscriptionResponse>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn process_subscription_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_response: &'life1 Self::SubscriptionResponse,
_state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_subscription_response<'life0, 'life1, 'async_trait>(
&'life0 self,
_response: &'life1 Self::SubscriptionResponse,
_state: Arc<RwLock<State>>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update state based on data from incoming subscription response
Auto Trait Implementations§
impl Freeze for SubscribeAccountOrders
impl RefUnwindSafe for SubscribeAccountOrders
impl Send for SubscribeAccountOrders
impl Sync for SubscribeAccountOrders
impl Unpin for SubscribeAccountOrders
impl UnsafeUnpin for SubscribeAccountOrders
impl UnwindSafe for SubscribeAccountOrders
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§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