pub struct InvalidTag<'a> {
pub value: &'a str,
pub error: TagValidationError,
}Expand description
A tag rejected while validating a tag.
Fields§
§value: &'a strThe invalid serialized tag.
error: TagValidationErrorWhy the tag is invalid.
Trait Implementations§
Source§impl<'a> Clone for InvalidTag<'a>
impl<'a> Clone for InvalidTag<'a>
Source§fn clone(&self) -> InvalidTag<'a>
fn clone(&self) -> InvalidTag<'a>
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 moreimpl<'a> Copy for InvalidTag<'a>
Source§impl<'a> Debug for InvalidTag<'a>
impl<'a> Debug for InvalidTag<'a>
Source§impl Display for InvalidTag<'_>
impl Display for InvalidTag<'_>
impl<'a> Eq for InvalidTag<'a>
Source§impl Error for InvalidTag<'_>
impl Error for InvalidTag<'_>
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<'a> PartialEq for InvalidTag<'a>
impl<'a> PartialEq for InvalidTag<'a>
impl<'a> StructuralPartialEq for InvalidTag<'a>
Auto Trait Implementations§
impl<'a> Freeze for InvalidTag<'a>
impl<'a> RefUnwindSafe for InvalidTag<'a>
impl<'a> Send for InvalidTag<'a>
impl<'a> Sync for InvalidTag<'a>
impl<'a> Unpin for InvalidTag<'a>
impl<'a> UnsafeUnpin for InvalidTag<'a>
impl<'a> UnwindSafe for InvalidTag<'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