#[non_exhaustive]pub enum ExtensionsError {
TooManyEntries {
max: usize,
observed: usize,
},
DuplicateKey,
KeyTooLong {
max: usize,
actual: usize,
},
Value {
source: BoundedJsonError,
},
TotalBytesExceeded {
max: usize,
actual: usize,
},
InternalEncoding,
}Expand description
Invalid bounded extension-map data.
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.
TooManyEntries
More entries were supplied than the active profile permits.
DuplicateKey
The same canonical namespace key appeared more than once.
KeyTooLong
A valid hard-bound key exceeded a narrowed profile.
Value
One nested extension value violated the active bounded JSON profile.
Fields
§
source: BoundedJsonErrorUnderlying bounded JSON violation.
TotalBytesExceeded
The exact compact map representation exceeded the active profile.
Fields
InternalEncoding
Serialization of already validated internal components unexpectedly failed.
Trait Implementations§
Source§impl Clone for ExtensionsError
impl Clone for ExtensionsError
Source§impl Debug for ExtensionsError
impl Debug for ExtensionsError
Source§impl Display for ExtensionsError
impl Display for ExtensionsError
impl Eq for ExtensionsError
Source§impl Error for ExtensionsError
impl Error for ExtensionsError
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 ExtensionsError
impl PartialEq for ExtensionsError
impl StructuralPartialEq for ExtensionsError
Auto Trait Implementations§
impl Forget for ExtensionsError
impl Freeze for ExtensionsError
impl Move for ExtensionsError
impl RefUnwindSafe for ExtensionsError
impl Send for ExtensionsError
impl Sync for ExtensionsError
impl Unpin for ExtensionsError
impl UnsafeUnpin for ExtensionsError
impl UnwindSafe for ExtensionsError
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