#[non_exhaustive]pub enum NotClosed {
NotAnObject {
object: &'static str,
},
UnknownMember {
object: &'static str,
member: String,
},
}Expand description
A JSON value that is not within a published v1 member list.
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.
NotAnObject
The value checked is not a JSON object.
UnknownMember
The object carries a member outside its published list.
Trait Implementations§
impl Eq for NotClosed
Source§impl Error for NotClosed
impl Error for NotClosed
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()
impl StructuralPartialEq for NotClosed
Auto Trait Implementations§
impl Freeze for NotClosed
impl RefUnwindSafe for NotClosed
impl Send for NotClosed
impl Sync for NotClosed
impl Unpin for NotClosed
impl UnsafeUnpin for NotClosed
impl UnwindSafe for NotClosed
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