pub struct SchemaRef<'a>(/* private fields */);Expand description
Reference to a deserialized Schema.
Implementations§
Source§impl<'a> SchemaRef<'a>
impl<'a> SchemaRef<'a>
Sourcepub fn endianness(&self) -> Result<Endianness>
pub fn endianness(&self) -> Result<Endianness>
Getter for the endianness field.
Sourcepub fn fields(&self) -> Result<Option<Vector<'a, Result<FieldRef<'a>>>>>
pub fn fields(&self) -> Result<Option<Vector<'a, Result<FieldRef<'a>>>>>
Getter for the fields field.
Sourcepub fn custom_metadata(
&self,
) -> Result<Option<Vector<'a, Result<KeyValueRef<'a>>>>>
pub fn custom_metadata( &self, ) -> Result<Option<Vector<'a, Result<KeyValueRef<'a>>>>>
Getter for the custom_metadata field.
Sourcepub fn features(
&self,
) -> Result<Option<Vector<'a, Result<Feature, UnknownEnumTag>>>>
pub fn features( &self, ) -> Result<Option<Vector<'a, Result<Feature, UnknownEnumTag>>>>
Getter for the features field.
Trait Implementations§
Source§impl<'a> ReadAsRoot<'a> for SchemaRef<'a>
impl<'a> ReadAsRoot<'a> for SchemaRef<'a>
impl<'a> Copy for SchemaRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for SchemaRef<'a>
impl<'a> RefUnwindSafe for SchemaRef<'a>
impl<'a> Send for SchemaRef<'a>
impl<'a> Sync for SchemaRef<'a>
impl<'a> Unpin for SchemaRef<'a>
impl<'a> UnwindSafe for SchemaRef<'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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more