Skip to main content

IdPathMap

Struct IdPathMap 

Source
pub struct IdPathMap<'set> {
    pub total_warnings: usize,
    pub total_elements: usize,
    pub elements_filtered: usize,
    pub warning_types_filtered: usize,
    pub warnings: BTreeMap<Id, Vec<&'set str>>,
}
Expand description

The outcome of calling the Set::id_path_map function.

Fields§

§total_warnings: usize

The total amount of Warnings Ids in the source Set.

§total_elements: usize

The total amount of json::Element paths in the source Set.

§elements_filtered: usize

The amount of json::Element paths filtered due to a Limit being set.

§warning_types_filtered: usize

The amount of Warning Ids filtered due to a Limit being set.

Note: This is not a count of how many warnings were filtered. It’s a count of how many types of warnings were filtered. If seven excessive_precision warnings are filtered, this counts as one type, as all the IDs that were filtered are the same.

§warnings: BTreeMap<Id, Vec<&'set str>>

The map of all Warning Ids mapped to the json::Element paths where they occurred.

Trait Implementations§

Source§

impl<'set> Debug for IdPathMap<'set>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'set> Freeze for IdPathMap<'set>

§

impl<'set> RefUnwindSafe for IdPathMap<'set>

§

impl<'set> Send for IdPathMap<'set>

§

impl<'set> Sync for IdPathMap<'set>

§

impl<'set> Unpin for IdPathMap<'set>

§

impl<'set> UnsafeUnpin for IdPathMap<'set>

§

impl<'set> UnwindSafe for IdPathMap<'set>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoCaveat for T

Source§

fn into_caveat<W>(self, warnings: Set<W>) -> Caveat<T, W>
where W: Warning,

Any type can be converted to Caveat<T> by supplying a list of Warnings.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more