pub enum SchemaContent {
Version(IslVersion),
Header(SchemaHeader),
Type(IslType),
Footer(SchemaFooter),
OpenContent(Element),
}Expand description
Models the content that could be in a Schema document.
Variants§
Trait Implementations§
Source§impl Clone for SchemaContent
impl Clone for SchemaContent
Source§fn clone(&self) -> SchemaContent
fn clone(&self) -> SchemaContent
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 SchemaContent
impl Debug for SchemaContent
Source§impl From<IslType> for SchemaContent
impl From<IslType> for SchemaContent
Source§impl From<IslVersion> for SchemaContent
impl From<IslVersion> for SchemaContent
Source§fn from(value: IslVersion) -> Self
fn from(value: IslVersion) -> Self
Converts to this type from the input type.
Source§fn from(value: SchemaFooter) -> Self
fn from(value: SchemaFooter) -> Self
Converts to this type from the input type.
Source§impl From<SchemaHeader> for SchemaContent
impl From<SchemaHeader> for SchemaContent
Source§fn from(value: SchemaHeader) -> Self
fn from(value: SchemaHeader) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SchemaContent
impl PartialEq for SchemaContent
Source§fn eq(&self, other: &SchemaContent) -> bool
fn eq(&self, other: &SchemaContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl WriteAsIon for SchemaContent
impl WriteAsIon for SchemaContent
Source§fn write_as_ion<V: ValueWriter>(&self, writer: V) -> IonResult<()>
fn write_as_ion<V: ValueWriter>(&self, writer: V) -> IonResult<()>
Maps this value to the Ion data model using the provided
ValueWriter implementation.Source§fn encode_as<E, C>(
&self,
config: C,
) -> Result<<E as Encoding>::Output, IonError>
fn encode_as<E, C>( &self, config: C, ) -> Result<<E as Encoding>::Output, IonError>
Encodes this value as an Ion stream with
self as the single top-level value.
If the requested encoding is binary of any version, returns a Vec<u8> containing the
encoded bytes. If the requested encoding is text of any version, returns a String instead. Read moreimpl StructuralPartialEq for SchemaContent
Auto Trait Implementations§
impl Freeze for SchemaContent
impl RefUnwindSafe for SchemaContent
impl Send for SchemaContent
impl Sync for SchemaContent
impl Unpin for SchemaContent
impl UnsafeUnpin for SchemaContent
impl UnwindSafe for SchemaContent
Blanket Implementations§
Source§impl<T> Annotatable for Twhere
T: WriteAsIon + ?Sized,
impl<T> Annotatable for Twhere
T: WriteAsIon + ?Sized,
Source§fn annotated_with<'a, A>(&'a self, annotations: A) -> Annotated<'a, T, A>where
A: 'a,
&'a A: AnnotationSeq<'a>,
fn annotated_with<'a, A>(&'a self, annotations: A) -> Annotated<'a, T, A>where
A: 'a,
&'a A: AnnotationSeq<'a>,
Pairs a reference to the provided value with a slice containing annotations. Read more
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