pub struct DecodeOptions {
pub canonical: CanonicalMode,
pub allow_schema_ref: bool,
pub validate_embedded_schema_on_cache_hit: bool,
pub limits: Limits,
}Expand description
Decoder behavior switches and resource limits.
Fields§
§canonical: CanonicalMode§allow_schema_ref: bool§validate_embedded_schema_on_cache_hit: boolValidate embedded schema bytes on FullSchemaWithId registry hits.
When enabled, the decoder reparses the embedded schema block and requires it to match the cached schema before reusing the cached AST. Disable this only when the registry entry is already trusted and the embedded schema bytes do not need to be checked.
limits: LimitsTrait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
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 moreSource§impl Debug for DecodeOptions
impl Debug for DecodeOptions
Source§impl Default for DecodeOptions
impl Default for DecodeOptions
Source§impl PartialEq for DecodeOptions
impl PartialEq for DecodeOptions
Source§fn eq(&self, other: &DecodeOptions) -> bool
fn eq(&self, other: &DecodeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DecodeOptions
impl Eq for DecodeOptions
impl StructuralPartialEq for DecodeOptions
Auto Trait Implementations§
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnsafeUnpin for DecodeOptions
impl UnwindSafe for DecodeOptions
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