Struct nash_protocol::protocol::get_ticker::TickerRequest [−][src]
pub struct TickerRequest {
pub market: String,
}Expand description
Get ticker associated with market
Fields
market: StringImplementations
pub async fn response_from_graphql(
&self,
response: ResponseOrError<ResponseData>,
_state: Arc<RwLock<State>>
) -> Result<ResponseOrError<TickerResponse>>
Trait Implementations
Performs the conversion.
Implement protocol bindings for TickerRequest
type Response = TickerResponse
Convert the protocol request to GraphQL from communication with Nash server
Convert JSON response to request to the protocol’s associated type
If you want to limit the amount of concurrency of a protocol return a Semaphore here
Any state changes that result from execution of the protocol request The default implementation does nothing to state Read more
Any errors that result from execution of the protocol request The default implementation does nothing to state Read more
Auto Trait Implementations
impl RefUnwindSafe for TickerRequest
impl Send for TickerRequest
impl Sync for TickerRequest
impl Unpin for TickerRequest
impl UnwindSafe for TickerRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more