pub struct ArrayUnevaluatedAnnotations {
pub saw_relevant: bool,
pub full_coverage: bool,
pub prefix_largest: Option<usize>,
pub contains_indices: HashSet<usize>,
pub contains_all: bool,
}Expand description
Tracks keywords that feed unevaluatedItems at one array instance (JSON Schema 2020-12 §11.2).
Fields§
§saw_relevant: boolAny annotation from prefixItems, items, contains, unevaluatedItems, or merged in-place applicators.
full_coverage: boolBoolean true from items or nested unevaluatedItems → ignore unevaluatedItems.
prefix_largest: Option<usize>Largest index prefixItems applied a subschema to (None if prefixItems absent or empty).
contains_indices: HashSet<usize>Indices where contains matched successfully.
contains_all: boolContains produced boolean true (every index).
Implementations§
Source§impl ArrayUnevaluatedAnnotations
impl ArrayUnevaluatedAnnotations
Sourcepub fn indices_requiring_unevaluated(&self, len: usize) -> Vec<usize>
pub fn indices_requiring_unevaluated(&self, len: usize) -> Vec<usize>
Indices that must still be validated by unevaluatedItems (JSON Schema 2020-12 §11.2).
Sourcepub fn merge_from(&mut self, other: &ArrayUnevaluatedAnnotations)
pub fn merge_from(&mut self, other: &ArrayUnevaluatedAnnotations)
Merge another branch’s annotations (e.g. successful anyOf sibling). Union semantics.
Trait Implementations§
Source§impl Clone for ArrayUnevaluatedAnnotations
impl Clone for ArrayUnevaluatedAnnotations
Source§fn clone(&self) -> ArrayUnevaluatedAnnotations
fn clone(&self) -> ArrayUnevaluatedAnnotations
Returns a duplicate of the value. Read more
1.0.0 · 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 ArrayUnevaluatedAnnotations
impl Debug for ArrayUnevaluatedAnnotations
Source§impl Default for ArrayUnevaluatedAnnotations
impl Default for ArrayUnevaluatedAnnotations
Source§fn default() -> ArrayUnevaluatedAnnotations
fn default() -> ArrayUnevaluatedAnnotations
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArrayUnevaluatedAnnotations
impl RefUnwindSafe for ArrayUnevaluatedAnnotations
impl Send for ArrayUnevaluatedAnnotations
impl Sync for ArrayUnevaluatedAnnotations
impl Unpin for ArrayUnevaluatedAnnotations
impl UnsafeUnpin for ArrayUnevaluatedAnnotations
impl UnwindSafe for ArrayUnevaluatedAnnotations
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