Struct lichess_api::model::Request
source · pub struct Request<Q, B = ()>where
Q: QueryBounds,
B: BodyBounds,{ /* private fields */ }Implementations§
source§impl Request<PostQuery, ChatMessage>
impl Request<PostQuery, ChatMessage>
source§impl Request<PostQuery, ChatMessage>
impl Request<PostQuery, ChatMessage>
source§impl Request<PostQuery, AIChallenge>
impl Request<PostQuery, AIChallenge>
pub fn new(challenge: AIChallenge) -> Self
source§impl Request<PostQuery, CreateChallenge>
impl Request<PostQuery, CreateChallenge>
pub fn new(username: &str, challenge: CreateChallenge) -> Self
source§impl Request<PostQuery, DeclineReason>
impl Request<PostQuery, DeclineReason>
source§impl Request<PostQuery, OpenChallenge>
impl Request<PostQuery, OpenChallenge>
pub fn new(challenge: OpenChallenge) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<Q, B> RefUnwindSafe for Request<Q, B>where
B: RefUnwindSafe,
Q: RefUnwindSafe,
impl<Q, B> Send for Request<Q, B>
impl<Q, B> Sync for Request<Q, B>
impl<Q, B> Unpin for Request<Q, B>
impl<Q, B> UnwindSafe for Request<Q, B>where
B: UnwindSafe,
Q: UnwindSafe,
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