pub struct ResolvedOptions { /* private fields */ }Expand description
Options with defaults applied and internal fields derived.
The crate builds this from Options and passes a reference to the
before_transform and after_transform hooks. A hook can read the resolved
settings through the accessors. The fields stay private so the shape can
change without breaking callers.
Defaults:
date_to_date_timefalse, coerced with truthiness.support_pattern_propertiesfalse, coerced with truthiness.strict_modetrue.definition_keywordsempty.
Implementations§
Source§impl ResolvedOptions
impl ResolvedOptions
Sourcepub fn date_to_date_time(&self) -> bool
pub fn date_to_date_time(&self) -> bool
Whether format: "date" is rewritten to format: "date-time".
Sourcepub fn support_pattern_properties(&self) -> bool
pub fn support_pattern_properties(&self) -> bool
Whether x-patternProperties is moved to patternProperties.
Sourcepub fn strict_mode(&self) -> bool
pub fn strict_mode(&self) -> bool
Whether an invalid input type is rejected.
Sourcepub fn definition_keywords(&self) -> &[String]
pub fn definition_keywords(&self) -> &[String]
The dotted paths whose values hold named sub-schemas to convert.
Trait Implementations§
Source§impl Clone for ResolvedOptions
impl Clone for ResolvedOptions
Source§fn clone(&self) -> ResolvedOptions
fn clone(&self) -> ResolvedOptions
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ResolvedOptions
impl !UnwindSafe for ResolvedOptions
impl Freeze for ResolvedOptions
impl Send for ResolvedOptions
impl Sync for ResolvedOptions
impl Unpin for ResolvedOptions
impl UnsafeUnpin for ResolvedOptions
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