pub enum JsonDecodeStage {
Input,
DecodeText,
Normalize,
Admission,
Parse,
TopLevelCheck,
Deserialize,
}Expand description
Identifies the semantic decoding stage where a failure occurred.
Stages describe public domain boundaries and do not expose whether the scanner, normalizer, or Serde first detected a failure.
§Examples
use qubit_json::decode::JsonDecodeStage;
let stage = "parse".parse::<JsonDecodeStage>()?;
assert_eq!(stage, JsonDecodeStage::Parse);Variants§
Input
Charging raw input bytes.
DecodeText
Decoding raw bytes as UTF-8 text.
Normalize
Normalizing text or charging normalized bytes.
Admission
Admitting decoded-value resources.
Parse
Validating JSON syntax and numeric range.
TopLevelCheck
Enforcing a top-level object or array contract.
Deserialize
Materializing the requested Rust type.
Trait Implementations§
Source§impl Clone for JsonDecodeStage
impl Clone for JsonDecodeStage
Source§fn clone(&self) -> JsonDecodeStage
fn clone(&self) -> JsonDecodeStage
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 moreimpl Copy for JsonDecodeStage
Source§impl Debug for JsonDecodeStage
impl Debug for JsonDecodeStage
Source§impl Display for JsonDecodeStage
impl Display for JsonDecodeStage
impl Eq for JsonDecodeStage
Source§impl FromStr for JsonDecodeStage
impl FromStr for JsonDecodeStage
Source§impl Hash for JsonDecodeStage
impl Hash for JsonDecodeStage
Source§impl PartialEq for JsonDecodeStage
impl PartialEq for JsonDecodeStage
impl StructuralPartialEq for JsonDecodeStage
Auto Trait Implementations§
impl Freeze for JsonDecodeStage
impl RefUnwindSafe for JsonDecodeStage
impl Send for JsonDecodeStage
impl Sync for JsonDecodeStage
impl Unpin for JsonDecodeStage
impl UnsafeUnpin for JsonDecodeStage
impl UnwindSafe for JsonDecodeStage
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