pub struct Value {
pub value: ValueData,
pub output: OutputSpec,
}Expand description
A concrete type that implements atomic values. These are the 19 predefined types in XSD Schema Part 2, plus five additional types. Also included is a hint for serialisation for if the value should be escaped.
Fields§
§value: ValueData§output: OutputSpecImplementations§
Source§impl Value
impl Value
pub fn value_ref(&self) -> &ValueData
pub fn output_ref(&self) -> &OutputSpec
Trait Implementations§
impl Eq for Value
Source§impl From<&Value> for ValueBuilder
Derive a new ValueBuilder from an existing Value. The value data in the old Value will be copied to the builder.
impl From<&Value> for ValueBuilder
Derive a new ValueBuilder from an existing Value. The value data in the old Value will be copied to the builder.
Source§impl From<NamespaceUri> for Value
impl From<NamespaceUri> for Value
Source§fn from(q: NamespaceUri) -> Self
fn from(q: NamespaceUri) -> Self
Converts to this type from the input type.
Source§impl From<NegativeInteger> for Value
impl From<NegativeInteger> for Value
Source§fn from(n: NegativeInteger) -> Self
fn from(n: NegativeInteger) -> Self
Converts to this type from the input type.
Source§impl From<NonNegativeInteger> for Value
impl From<NonNegativeInteger> for Value
Source§fn from(n: NonNegativeInteger) -> Self
fn from(n: NonNegativeInteger) -> Self
Converts to this type from the input type.
Source§impl From<NonPositiveInteger> for Value
impl From<NonPositiveInteger> for Value
Source§fn from(n: NonPositiveInteger) -> Self
fn from(n: NonPositiveInteger) -> Self
Converts to this type from the input type.
Source§impl From<NormalizedString> for Value
impl From<NormalizedString> for Value
Source§fn from(n: NormalizedString) -> Self
fn from(n: NormalizedString) -> Self
Converts to this type from the input type.
Source§impl From<PositiveInteger> for Value
impl From<PositiveInteger> for Value
Source§fn from(p: PositiveInteger) -> Self
fn from(p: PositiveInteger) -> Self
Converts to this type from the input type.
Source§impl Ord for Value
impl Ord for Value
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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