#[non_exhaustive]pub enum CleanupJsonAttributeErrorReason {
Unsupported,
InvalidDefault,
InvalidSyntax,
}Expand description
Why a caller attribute cannot be preserved by the cleanup JSON visitor.
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.
Unsupported
The visitor cannot implement the requested input customization.
InvalidDefault
A Serde default is neither bare nor a string containing a function path.
InvalidSyntax
Attribute syntax could not be parsed without guessing its policy.
Trait Implementations§
Source§impl Clone for ErrorReason
impl Clone for ErrorReason
impl Copy for ErrorReason
Source§impl Debug for ErrorReason
impl Debug for ErrorReason
Source§impl Display for ErrorReason
impl Display for ErrorReason
impl Eq for ErrorReason
Source§impl Error for ErrorReason
impl Error for ErrorReason
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<ErrorReason> for CodeGenError
impl From<ErrorReason> for CodeGenError
Source§fn from(source: CleanupJsonAttributeErrorReason) -> Self
fn from(source: CleanupJsonAttributeErrorReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErrorReason
impl PartialEq for ErrorReason
impl StructuralPartialEq for ErrorReason
Auto Trait Implementations§
impl Forget for ErrorReason
impl Freeze for ErrorReason
impl Move for ErrorReason
impl RefUnwindSafe for ErrorReason
impl Send for ErrorReason
impl Sync for ErrorReason
impl Unpin for ErrorReason
impl UnsafeUnpin for ErrorReason
impl UnwindSafe for ErrorReason
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