pub struct Absorbing;Expand description
Absorbing mode: accept everything, preserve unknowns in overflow.
Use for round-tripping, protocol proxying, config file editing — anything where unknown data must survive the parse/emit cycle.
- Unknown fields: preserved in
Overflow(HashMap) - Coercion: SafeWidening (safe numeric conversions only)
- Missing fields: error (required fields must be present)
- Errors: collected (not fail-fast)
- Residual:
Overflow— unknown fields captured in a HashMap
Trait Implementations§
Source§impl Mode for Absorbing
impl Mode for Absorbing
Source§fn default_coercion() -> CoercionLevel
fn default_coercion() -> CoercionLevel
Default coercion level for this mode.
Source§fn reject_unknown_fields() -> bool
fn reject_unknown_fields() -> bool
Whether unknown fields should cause an error.
Source§fn require_all_fields() -> bool
fn require_all_fields() -> bool
Whether missing fields should cause an error (vs defaulting).
impl Copy for Absorbing
Auto Trait Implementations§
impl Freeze for Absorbing
impl RefUnwindSafe for Absorbing
impl Send for Absorbing
impl Sync for Absorbing
impl Unpin for Absorbing
impl UnsafeUnpin for Absorbing
impl UnwindSafe for Absorbing
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