pub struct IonSchemaElement<'a> { /* private fields */ }
Expand description
Represents a value that can be validated by Ion Schema.
An IonSchemaElement can be constructed from Element to represent a single Ion value, or from [Document] to represent the Ion Schema document type.
In general, users do not need to construct this directly. Ion Schema APIs accept
Into<IonSchemaElement>
rather than directly accepting IonSchemaElement
.
See [TypeDefinition::validate] for examples of use.
Trait Implementations§
Source§impl<'a> Clone for IonSchemaElement<'a>
impl<'a> Clone for IonSchemaElement<'a>
Source§fn clone(&self) -> IonSchemaElement<'a>
fn clone(&self) -> IonSchemaElement<'a>
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<'a> Debug for IonSchemaElement<'a>
impl<'a> Debug for IonSchemaElement<'a>
Source§impl<'a> Display for IonSchemaElement<'a>
impl<'a> Display for IonSchemaElement<'a>
Source§impl<'a> From<&'a Element> for IonSchemaElement<'a>
impl<'a> From<&'a Element> for IonSchemaElement<'a>
Source§impl<'a> From<DocumentHint<'a>> for IonSchemaElement<'a>
impl<'a> From<DocumentHint<'a>> for IonSchemaElement<'a>
Source§fn from(value: DocumentHint<'a>) -> Self
fn from(value: DocumentHint<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for IonSchemaElement<'a>
impl<'a> PartialEq for IonSchemaElement<'a>
impl<'a> StructuralPartialEq for IonSchemaElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for IonSchemaElement<'a>
impl<'a> RefUnwindSafe for IonSchemaElement<'a>
impl<'a> Send for IonSchemaElement<'a>
impl<'a> Sync for IonSchemaElement<'a>
impl<'a> Unpin for IonSchemaElement<'a>
impl<'a> UnwindSafe for IonSchemaElement<'a>
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<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more