pub struct Get;
Expand description
The representation of a GET request to the
/v2/reference/tickers/<ticker>
endpoint.
Trait Implementations
sourceimpl Endpoint for Get
impl Endpoint for Get
type Input = String
type Input = String
The type of data being passed in as part of a request to this endpoint. Read more
type Output = Response<TickerResp>
type Output = Response<TickerResp>
The type of data being returned in the response from this endpoint. Read more
type ConversionError = Error
type ConversionError = Error
An error emitted when converting between formats.
type ApiError = ErrorMessage
type ApiError = ErrorMessage
An error emitted by the API.
sourcefn parse(body: &[u8]) -> Result<Self::Output, Self::ConversionError>
fn parse(body: &[u8]) -> Result<Self::Output, Self::ConversionError>
Parse the body into the final result.
sourcefn query(
input: &Self::Input
) -> Result<Option<Cow<'static, str>>, Self::ConversionError>
fn query(
input: &Self::Input
) -> Result<Option<Cow<'static, str>>, Self::ConversionError>
Inquire the query the request should use. Read more
sourcefn headers(
input: &Self::Input
) -> Result<Option<HeaderMap<HeaderValue>>, Self::ConversionError>
fn headers(
input: &Self::Input
) -> Result<Option<HeaderMap<HeaderValue>>, Self::ConversionError>
Gather the request headers to set.
impl Copy for Get
Auto Trait Implementations
impl RefUnwindSafe for Get
impl Send for Get
impl Sync for Get
impl Unpin for Get
impl UnwindSafe for Get
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more