pub struct FieldEvidence<'de> {
pub name: Cow<'de, str>,
pub location: FieldLocationHint,
pub value_type: Option<ValueTypeHint>,
pub scalar_value: Option<ScalarValue<'de>>,
pub namespace: Option<Cow<'de, str>>,
}Expand description
Evidence describing a serialized field encountered while probing input.
Fields§
§name: Cow<'de, str>Serialized field name (after rename/namespace resolution).
location: FieldLocationHintWhere the field resides (attribute/text/property/etc.).
value_type: Option<ValueTypeHint>Optional type hint extracted from the wire (self-describing formats only).
scalar_value: Option<ScalarValue<'de>>Optional scalar value captured during probing. This is used for value-based variant disambiguation (e.g., finding tag values). Complex values (objects/arrays) are skipped and not captured here.
namespace: Option<Cow<'de, str>>Optional namespace URI (for XML namespace support).
Implementations§
Source§impl<'de> FieldEvidence<'de>
impl<'de> FieldEvidence<'de>
Sourcepub fn new(
name: impl Into<Cow<'de, str>>,
location: FieldLocationHint,
value_type: Option<ValueTypeHint>,
namespace: Option<Cow<'de, str>>,
) -> Self
pub fn new( name: impl Into<Cow<'de, str>>, location: FieldLocationHint, value_type: Option<ValueTypeHint>, namespace: Option<Cow<'de, str>>, ) -> Self
Construct a new evidence entry.
Sourcepub fn with_scalar_value(
name: impl Into<Cow<'de, str>>,
location: FieldLocationHint,
value_type: Option<ValueTypeHint>,
scalar_value: ScalarValue<'de>,
namespace: Option<Cow<'de, str>>,
) -> Self
pub fn with_scalar_value( name: impl Into<Cow<'de, str>>, location: FieldLocationHint, value_type: Option<ValueTypeHint>, scalar_value: ScalarValue<'de>, namespace: Option<Cow<'de, str>>, ) -> Self
Construct a new evidence entry with a scalar value.
Trait Implementations§
Source§impl<'de> Clone for FieldEvidence<'de>
impl<'de> Clone for FieldEvidence<'de>
Source§fn clone(&self) -> FieldEvidence<'de>
fn clone(&self) -> FieldEvidence<'de>
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<'de> Debug for FieldEvidence<'de>
impl<'de> Debug for FieldEvidence<'de>
Source§impl<'de> PartialEq for FieldEvidence<'de>
impl<'de> PartialEq for FieldEvidence<'de>
impl<'de> StructuralPartialEq for FieldEvidence<'de>
Auto Trait Implementations§
impl<'de> Freeze for FieldEvidence<'de>
impl<'de> RefUnwindSafe for FieldEvidence<'de>
impl<'de> Send for FieldEvidence<'de>
impl<'de> Sync for FieldEvidence<'de>
impl<'de> Unpin for FieldEvidence<'de>
impl<'de> UnwindSafe for FieldEvidence<'de>
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