pub enum RichtextDecodeError {
NotContent(String),
BadMarkdown(String),
}Expand description
Which encoding a decode_richtext_value failure came from, so a call site
can prefix its diagnostic per encoding without re-deriving the dispatch.
Surfaced publicly as the error of Card::field_richtext.
Variants§
NotContent(String)
A JSON object that is not a valid canonical content.
BadMarkdown(String)
A markdown string that failed to import.
Implementations§
Source§impl RichtextDecodeError
impl RichtextDecodeError
Sourcepub fn into_message(self) -> String
pub fn into_message(self) -> String
The inner failure message, without an encoding-specific prefix.
Trait Implementations§
Source§impl Clone for RichtextDecodeError
impl Clone for RichtextDecodeError
Source§fn clone(&self) -> RichtextDecodeError
fn clone(&self) -> RichtextDecodeError
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 RichtextDecodeError
impl Debug for RichtextDecodeError
impl Eq for RichtextDecodeError
Source§impl PartialEq for RichtextDecodeError
impl PartialEq for RichtextDecodeError
impl StructuralPartialEq for RichtextDecodeError
Auto Trait Implementations§
impl Freeze for RichtextDecodeError
impl RefUnwindSafe for RichtextDecodeError
impl Send for RichtextDecodeError
impl Sync for RichtextDecodeError
impl Unpin for RichtextDecodeError
impl UnsafeUnpin for RichtextDecodeError
impl UnwindSafe for RichtextDecodeError
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.