pub struct FieldRef<'a>(/* private fields */);Expand description
Reference to a deserialized Field.
Implementations§
Source§impl<'a> FieldRef<'a>
impl<'a> FieldRef<'a>
Sourcepub fn nullable(&self) -> Result<bool>
pub fn nullable(&self) -> Result<bool>
Getter for the nullable field.
Sourcepub fn dictionary(&self) -> Result<Option<DictionaryEncodingRef<'a>>>
pub fn dictionary(&self) -> Result<Option<DictionaryEncodingRef<'a>>>
Getter for the dictionary field.
Sourcepub fn children(&self) -> Result<Option<Vector<'a, Result<FieldRef<'a>>>>>
pub fn children(&self) -> Result<Option<Vector<'a, Result<FieldRef<'a>>>>>
Getter for the children 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.
Trait Implementations§
Source§impl<'a> ReadAsRoot<'a> for FieldRef<'a>
impl<'a> ReadAsRoot<'a> for FieldRef<'a>
impl<'a> Copy for FieldRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldRef<'a>
impl<'a> RefUnwindSafe for FieldRef<'a>
impl<'a> Send for FieldRef<'a>
impl<'a> Sync for FieldRef<'a>
impl<'a> Unpin for FieldRef<'a>
impl<'a> UnwindSafe for FieldRef<'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