pub struct Limits {
pub max_questions: usize,
pub max_options: usize,
pub min_levels: usize,
pub max_levels: usize,
pub allow_no_questions: bool,
}Expand description
The limits and the few rules where Jev and Laya disagree.
Fields§
§max_questions: usizeThe most questions in one request.
max_options: usizeThe most options in one choice question.
min_levels: usizeThe fewest levels a score question may have. Jev needs 2 and Laya takes 1.
max_levels: usizeThe most levels a score question may have.
allow_no_questions: boolWhether an empty questions object is allowed. Jev rejects it and Laya answers it with no
answers.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.