pub struct KeyFieldValue {
pub string_value: String,
pub typed_value: Option<XmlValue>,
}Expand description
Per-field extracted value for key sequence equality.
Equality semantics follow the XSD spec:
- If both have
typed_valuewith the samePrimitiveTypeCode, compare in value space. For theDecimalprimitive type (which coversxs:decimal,xs:integer, and all integer-derived types), comparison is performed numerically so that, e.g.,xs:decimal "1"equalsxs:unsignedByte "1". - For all other primitive types with the same
PrimitiveTypeCode, compare viaXmlValue::PartialEq(structural comparison ofXmlValueKind). - Different primitive types are never equal (no type promotion for IC equality).
- If either value is untyped, compare
string_value(string equality).
Fields§
§string_value: String§typed_value: Option<XmlValue>Trait Implementations§
Source§impl Clone for KeyFieldValue
impl Clone for KeyFieldValue
Source§fn clone(&self) -> KeyFieldValue
fn clone(&self) -> KeyFieldValue
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 moreSource§impl Debug for KeyFieldValue
impl Debug for KeyFieldValue
impl Eq for KeyFieldValue
Source§impl PartialEq for KeyFieldValue
impl PartialEq for KeyFieldValue
Auto Trait Implementations§
impl Freeze for KeyFieldValue
impl RefUnwindSafe for KeyFieldValue
impl Send for KeyFieldValue
impl Sync for KeyFieldValue
impl Unpin for KeyFieldValue
impl UnsafeUnpin for KeyFieldValue
impl UnwindSafe for KeyFieldValue
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