pub enum ValidationError {
UnexpectedTagName,
MissingRequiredAttribute(&'static str),
NotImplemented,
ErrorExtractingTagValue(ParseTagValueError),
ErrorExtractingAttributeListValue(ParseAttributeValueError),
InvalidEnumeratedString,
}Expand description
An error experienced while trying to convert into a known tag via TryFrom<ParsedTag>.
Variants§
UnexpectedTagName
The tag name did not match expectations for the tag.
MissingRequiredAttribute(&'static str)
A required attribute was missing (the associated value should be the required attribute name).
NotImplemented
Parsing for this tag is not implemented.
ErrorExtractingTagValue(ParseTagValueError)
The expected value of the tag could not be obtained.
ErrorExtractingAttributeListValue(ParseAttributeValueError)
An attribute value within an attribute list could not be parsed.
InvalidEnumeratedString
The enumerated string extracted from crate::tag::UnquotedAttributeValue was not a known
value.
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AttributeListParsingError> for ValidationError
impl From<AttributeListParsingError> for ValidationError
Source§fn from(value: AttributeListParsingError) -> Self
fn from(value: AttributeListParsingError) -> Self
Converts to this type from the input type.
Source§impl From<DateTimeSyntaxError> for ValidationError
impl From<DateTimeSyntaxError> for ValidationError
Source§fn from(value: DateTimeSyntaxError) -> Self
fn from(value: DateTimeSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<ParseAttributeValueError> for ValidationError
impl From<ParseAttributeValueError> for ValidationError
Source§fn from(value: ParseAttributeValueError) -> Self
fn from(value: ParseAttributeValueError) -> Self
Converts to this type from the input type.
Source§impl From<ParseDecimalFloatingPointWithTitleError> for ValidationError
impl From<ParseDecimalFloatingPointWithTitleError> for ValidationError
Source§fn from(value: ParseDecimalFloatingPointWithTitleError) -> Self
fn from(value: ParseDecimalFloatingPointWithTitleError) -> Self
Converts to this type from the input type.
Source§impl From<ParseDecimalIntegerRangeError> for ValidationError
impl From<ParseDecimalIntegerRangeError> for ValidationError
Source§fn from(value: ParseDecimalIntegerRangeError) -> Self
fn from(value: ParseDecimalIntegerRangeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for ValidationError
impl From<ParseFloatError> for ValidationError
Source§fn from(value: ParseFloatError) -> Self
fn from(value: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ValidationError
impl From<ParseNumberError> for ValidationError
Source§fn from(value: ParseNumberError) -> Self
fn from(value: ParseNumberError) -> Self
Converts to this type from the input type.
Source§impl From<ParsePlaylistTypeError> for ValidationError
impl From<ParsePlaylistTypeError> for ValidationError
Source§fn from(value: ParsePlaylistTypeError) -> Self
fn from(value: ParsePlaylistTypeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseTagValueError> for ValidationError
impl From<ParseTagValueError> for ValidationError
Source§fn from(value: ParseTagValueError) -> Self
fn from(value: ParseTagValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
impl Copy for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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