pub struct NadeoRequest { /* private fields */ }Expand description
Contains information about an API request. NadeoRequests can be executed on an instance of a NadeoClient.
If you want to create a request use the NadeoRequestBuilder with NadeoRequest::builder().
§Examples
Gets the clubtag of a player given the accountID.
let mut client = //snap;
let request = NadeoRequest::builder()
.url("https://prod.trackmania.core.nadeo.online/accounts/clubTags/?accountIdList=29e75531-1a9d-4880-98da-e2acfe17c578")
.auth_type(AuthType::NadeoServices)
.method(Method::GET)
.build()?;
let response = client.execute(request).await?;Implementations§
Source§impl NadeoRequest
impl NadeoRequest
Sourcepub fn builder() -> NadeoRequestBuilder
pub fn builder() -> NadeoRequestBuilder
Creates a new NadeoRequestBuilder. This is the only way of creating a NadeoRequest.
Trait Implementations§
Source§impl Clone for NadeoRequest
impl Clone for NadeoRequest
Source§fn clone(&self) -> NadeoRequest
fn clone(&self) -> NadeoRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NadeoRequest
impl RefUnwindSafe for NadeoRequest
impl Send for NadeoRequest
impl Sync for NadeoRequest
impl Unpin for NadeoRequest
impl UnwindSafe for NadeoRequest
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