Request

Struct Request 

Source
pub struct Request<Q, B = ()>
where Q: QueryBounds, B: BodyBounds,
{ /* private fields */ }

Implementations§

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(on: bool) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(query: GetQuery) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery, ChatMessage>

Source

pub fn new(game_id: &str, room: Room, message: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str, accept: bool) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str, move: &str, offering_draw: bool) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(query: PostQuery) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str, accept: bool) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery, ChatMessage>

Source

pub fn new(game_id: &str, room: Room, message: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str, accept: bool) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str, move: &str, offering_draw: bool) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(bot_count: u32) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new() -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(challenge_id: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: String, seconds: u32) -> Self

Source§

impl Request<PostQuery, AIChallenge>

Source

pub fn new(challenge: AIChallenge) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(challenge_id: String, opponent_token: Option<String>) -> Self

Source§

impl Request<PostQuery, CreateChallenge>

Source

pub fn new(username: &str, challenge: CreateChallenge) -> Self

Source§

impl Request<PostQuery, DeclineReason>

Source

pub fn new(challenge_id: String, reason: Reason) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<PostQuery, OpenChallenge>

Source

pub fn new(challenge: OpenChallenge) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(game_id: String, token1: String, token2: String) -> Self

Source§

impl Request<PostQuery, AcquireAnalysis>

Source

pub fn new(acquire_analysis: AcquireAnalysis) -> Self

Source§

impl Request<PostQuery, AnalysisRequest>

Source

pub fn new(id: &str, analysis_request: AnalysisRequest) -> Self

Source§

impl Request<PostQuery, CreateExternalEngine>

Source

pub fn new(engine: CreateExternalEngine) -> Self

Source§

impl Request<DeleteQuery>

Source

pub fn new(id: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(id: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<PutQuery, UpdateExternalEngine>

Source

pub fn new(id: &str, engine: UpdateExternalEngine) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(id: u32) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(query: GetQuery) -> Self

Source§

impl Request<PostQuery, String>

Source

pub fn new<Id: Borrow<str>, Ids: AsRef<[Id]>>( game_ids: Ids, query: PostQuery, ) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str, query: GetQuery) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(game_id: &str, query: GetQuery) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str, query: GetQuery) -> Self

Source§

impl Request<PostQuery, Game>

Source

pub fn new(pgn: String) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(max_games: u8) -> Self

Source§

impl Request<PostQuery, Vec<String>>

Source

pub fn new(stream_id: &str, game_ids: Vec<String>) -> Self

Source§

impl Request<PostQuery, Vec<String>>

Source

pub fn new<Id: Borrow<str>, Ids: AsRef<[Id]>>( stream_id: &str, game_ids: Ids, ) -> Self

Source§

impl Request<PostQuery, Vec<String>>

Source

pub fn new<Id: Borrow<str>, Ids: AsRef<[Id]>>( user_ids: Ids, with_current_games: bool, ) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(id: &str) -> Self

Source§

impl Request<PostQuery, Message>

Source

pub fn new(username: &str, message: &str) -> Self

Source§

impl Request<DeleteQuery>

Source

pub fn new() -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(tokens: Vec<String>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(query: GetQuery) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(query: GetQuery) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(game_id: impl Into<String>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(query: GetQuery) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(max_rounds: Option<u32>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(days: u32) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(id: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(angle: Option<String>, difficulty: Option<Difficulty>) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(days: u32, theme: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str, days: Option<u32>) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<PostQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<PostQuery, ImportPgnBody>

Source

pub fn new(study_id: String, import_pgn_body: ImportPgnBody) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(fen: impl Into<String>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(fen: impl Into<String>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(fen: impl Into<String>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(channel: ChannelName, query: Option<GetQuery>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(channel: ChannelName) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(term: impl Into<String>, friend: Option<bool>) -> Self

Source§

impl Request<PostQuery, String>

Source

pub fn new<Ids: AsRef<[Id]>, Id: Borrow<str>>(ids: Ids) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(user1: &str, user2: &str, matchup: Option<bool>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(player_count: u8, perf_type: PerfType) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<PostQuery, Message>

Source

pub fn new(username: &str, message: impl Into<String>) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str, perf: PerfType) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str, with_trophies: bool) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(username: &str) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new(user_ids: Vec<String>, with_game_ids: bool) -> Self

Source§

impl Request<GetQuery>

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl<Q, B> Clone for Request<Q, B>
where Q: QueryBounds + Clone, B: BodyBounds + Clone,

Source§

fn clone(&self) -> Request<Q, B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Q, B> Debug for Request<Q, B>
where Q: QueryBounds + Debug, B: BodyBounds + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Q, B> Freeze for Request<Q, B>
where Q: Freeze, B: Freeze,

§

impl<Q, B> RefUnwindSafe for Request<Q, B>

§

impl<Q, B> Send for Request<Q, B>
where Q: Send, B: Send,

§

impl<Q, B> Sync for Request<Q, B>
where Q: Sync, B: Sync,

§

impl<Q, B> Unpin for Request<Q, B>
where Q: Unpin, B: Unpin,

§

impl<Q, B> UnwindSafe for Request<Q, B>
where Q: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,