pub enum IslVersion {
V1_0,
V2_0,
}Expand description
Represents Ion Schema Language Versions Currently it support v1.0 and v2.0
Variants§
Trait Implementations§
Source§impl Clone for IslVersion
impl Clone for IslVersion
Source§fn clone(&self) -> IslVersion
fn clone(&self) -> IslVersion
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 IslVersion
impl Debug for IslVersion
Source§impl Display for IslVersion
impl Display for IslVersion
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§impl PartialEq for IslVersion
impl PartialEq for IslVersion
Source§fn eq(&self, other: &IslVersion) -> bool
fn eq(&self, other: &IslVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl WriteAsIon for IslVersion
impl WriteAsIon for IslVersion
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 Copy for IslVersion
impl Eq for IslVersion
impl StructuralPartialEq for IslVersion
Auto Trait Implementations§
impl Freeze for IslVersion
impl RefUnwindSafe for IslVersion
impl Send for IslVersion
impl Sync for IslVersion
impl Unpin for IslVersion
impl UnsafeUnpin for IslVersion
impl UnwindSafe for IslVersion
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
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