Struct lichess_api::model::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() -> 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: String) -> 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, String>

source

pub fn new(game_ids: Vec<String>, query: PostQuery) -> Self

source§

impl Request<GetQuery>

source

pub fn new(game_id: &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(stream_id: &str, game_ids: Vec<String>) -> Self

source§

impl Request<PostQuery, Vec<String>>

source

pub fn new(user_ids: Vec<String>, 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<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: &str) -> 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<PostQuery>

source

pub fn new() -> Self

source§

impl Request<GetQuery>

source

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

source§

impl Request<GetQuery>

source

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

source§

impl Request<GetQuery>

source

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

source§

impl Request<GetQuery>

source

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

source§

impl Request<GetQuery>

source

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

source§

impl Request<GetQuery>

source

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

Trait Implementations§

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

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

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

impl<Q, B> UnwindSafe for Request<Q, B>
where B: UnwindSafe, Q: 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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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