pub struct SeekRequest<'a> { /* private fields */ }Expand description
Builder for a BoardApi::seek request.
Implementations§
Source§impl<'a> SeekRequest<'a>
impl<'a> SeekRequest<'a>
Sourcepub fn clock(self, time_minutes: f32, increment_secs: u32) -> Self
pub fn clock(self, time_minutes: f32, increment_secs: u32) -> Self
Sets a real-time clock (initial minutes + increment seconds).
Sourcepub fn variant(self, variant: LichessVariantKey) -> Self
pub fn variant(self, variant: LichessVariantKey) -> Self
Sets the variant.
Sourcepub fn color(self, color: &'a str) -> Self
pub fn color(self, color: &'a str) -> Self
Sets the color to play ("white", "black", or "random").
Sourcepub fn rating_range(self, range: &'a str) -> Self
pub fn rating_range(self, range: &'a str) -> Self
Restricts opponents to this rating band, e.g. "1500-1800".
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SeekRequest<'a>
impl<'a> !UnwindSafe for SeekRequest<'a>
impl<'a> Freeze for SeekRequest<'a>
impl<'a> Send for SeekRequest<'a>
impl<'a> Sync for SeekRequest<'a>
impl<'a> Unpin for SeekRequest<'a>
impl<'a> UnsafeUnpin for SeekRequest<'a>
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