pub enum ContextOmissionReason {
MaxItems,
OverBudget,
}Expand description
Reason a context item was not selected for a ContextPack.
Variants§
MaxItems
The pack already reached ContextPackConfig::max_items.
OverBudget
Adding the item would exceed the available character budget.
Trait Implementations§
Source§impl Clone for ContextOmissionReason
impl Clone for ContextOmissionReason
Source§fn clone(&self) -> ContextOmissionReason
fn clone(&self) -> ContextOmissionReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextOmissionReason
impl Debug for ContextOmissionReason
Source§impl<'de> Deserialize<'de> for ContextOmissionReason
impl<'de> Deserialize<'de> for ContextOmissionReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextOmissionReason
impl PartialEq for ContextOmissionReason
Source§fn eq(&self, other: &ContextOmissionReason) -> bool
fn eq(&self, other: &ContextOmissionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextOmissionReason
impl Serialize for ContextOmissionReason
impl Eq for ContextOmissionReason
impl StructuralPartialEq for ContextOmissionReason
Auto Trait Implementations§
impl Freeze for ContextOmissionReason
impl RefUnwindSafe for ContextOmissionReason
impl Send for ContextOmissionReason
impl Sync for ContextOmissionReason
impl Unpin for ContextOmissionReason
impl UnsafeUnpin for ContextOmissionReason
impl UnwindSafe for ContextOmissionReason
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