pub enum JsonObjectError {
KeyIsEmpty,
KeyAlreadyExists,
ValueIsNull,
KeyOrValueIsNull,
PaseError,
}
Expand description
定义 JsonObject
操作中可能出现的错误类型。
Variants§
KeyIsEmpty
键为空。
KeyAlreadyExists
键已存在。
ValueIsNull
值为 null
。
KeyOrValueIsNull
键或值为 null
。
PaseError
解析错误。
Trait Implementations§
Source§impl Clone for JsonObjectError
impl Clone for JsonObjectError
Source§fn clone(&self) -> JsonObjectError
fn clone(&self) -> JsonObjectError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsonObjectError
impl Debug for JsonObjectError
Source§impl Display for JsonObjectError
impl Display for JsonObjectError
Source§impl Error for JsonObjectError
impl Error for JsonObjectError
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 PartialEq for JsonObjectError
impl PartialEq for JsonObjectError
impl Eq for JsonObjectError
impl StructuralPartialEq for JsonObjectError
Auto Trait Implementations§
impl Freeze for JsonObjectError
impl RefUnwindSafe for JsonObjectError
impl Send for JsonObjectError
impl Sync for JsonObjectError
impl Unpin for JsonObjectError
impl UnwindSafe for JsonObjectError
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