#[non_exhaustive]pub enum ValidationWarning {
ParseFactCapReached {
cap: usize,
},
IncompatibleProfile {
profile_id: Identifier,
reason: BoundedText,
},
AutoDetection {
message: BoundedText,
},
General {
message: BoundedText,
},
}Expand description
Validation warning.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ParseFactCapReached
Parse facts exceeded the configured retention cap.
IncompatibleProfile
Incompatible profile was skipped.
AutoDetection
Auto flavour detection fell back or could not select a profile.
Fields
§
message: BoundedTextBounded warning message.
General
General bounded warning.
Fields
§
message: BoundedTextWarning message.
Implementations§
Source§impl ValidationWarning
impl ValidationWarning
Sourcepub fn message_text(&self) -> BoundedText
pub fn message_text(&self) -> BoundedText
Returns a bounded human-readable warning message.
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
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 ValidationWarning
impl Debug for ValidationWarning
Source§impl<'de> Deserialize<'de> for ValidationWarning
impl<'de> Deserialize<'de> for ValidationWarning
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 ValidationWarning
impl PartialEq for ValidationWarning
Source§fn eq(&self, other: &ValidationWarning) -> bool
fn eq(&self, other: &ValidationWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidationWarning
impl Serialize for ValidationWarning
impl Eq for ValidationWarning
impl StructuralPartialEq for ValidationWarning
Auto Trait Implementations§
impl Freeze for ValidationWarning
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnsafeUnpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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