pub struct InspectOutput {
pub root: String,
pub max_depth: usize,
pub elements: BTreeMap<String, usize>,
pub namespaces: BTreeMap<String, usize>,
}Expand description
The shape of a document.
Fields§
§root: StringThe local name of the root element, or none.
max_depth: usizeThe deepest element, counting the root as 1.
elements: BTreeMap<String, usize>Every element name present, with how many times it occurs.
namespaces: BTreeMap<String, usize>Every namespace URI in use, with how many elements are in it.
Trait Implementations§
Source§impl Clone for InspectOutput
impl Clone for InspectOutput
Source§impl Debug for InspectOutput
impl Debug for InspectOutput
Source§impl Display for InspectOutput
impl Display for InspectOutput
impl Eq for InspectOutput
Source§impl JsonSchema for InspectOutput
impl JsonSchema for InspectOutput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for InspectOutput
impl PartialEq for InspectOutput
Source§impl Serialize for InspectOutput
impl Serialize for InspectOutput
impl StructuralPartialEq for InspectOutput
Auto Trait Implementations§
impl Freeze for InspectOutput
impl RefUnwindSafe for InspectOutput
impl Send for InspectOutput
impl Sync for InspectOutput
impl Unpin for InspectOutput
impl UnsafeUnpin for InspectOutput
impl UnwindSafe for InspectOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.