Struct speedrun_api::SpeedrunApiClient
source · [−]pub struct SpeedrunApiClient { /* private fields */ }Expand description
A client for communicating with the Speedrun.com API
Implementations
sourceimpl SpeedrunApiClient
impl SpeedrunApiClient
sourcepub fn new() -> SpeedrunApiResult<Self>
pub fn new() -> SpeedrunApiResult<Self>
Create a new Speedrun.com API client.
sourcepub fn with_api_key<S>(api_key: S) -> SpeedrunApiResult<Self>where
S: Into<String>,
pub fn with_api_key<S>(api_key: S) -> SpeedrunApiResult<Self>where
S: Into<String>,
Create a new Speedrun.com API client, with the provided API key.
sourcepub fn builder() -> SpeedrunApiBuilder
pub fn builder() -> SpeedrunApiBuilder
Create a new Speedrun.com API builder.
Trait Implementations
sourceimpl Client for SpeedrunApiClient
impl Client for SpeedrunApiClient
sourceimpl Clone for SpeedrunApiClient
impl Clone for SpeedrunApiClient
sourcefn clone(&self) -> SpeedrunApiClient
fn clone(&self) -> SpeedrunApiClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SpeedrunApiClient
impl Debug for SpeedrunApiClient
sourceimpl RestClient for SpeedrunApiClient
impl RestClient for SpeedrunApiClient
Auto Trait Implementations
impl !RefUnwindSafe for SpeedrunApiClient
impl Send for SpeedrunApiClient
impl Sync for SpeedrunApiClient
impl Unpin for SpeedrunApiClient
impl !UnwindSafe for SpeedrunApiClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more