ObjectFieldBuilder

Struct ObjectFieldBuilder 

Source
pub struct ObjectFieldBuilder<'o, 'v, 's, S: BuilderSpecificState> {
    key: &'s str,
    builder: &'o mut ObjectBuilder<'v, S>,
}
Expand description

A VariantBuilderExt that inserts a new field into a variant object.

Fields§

§key: &'s str§builder: &'o mut ObjectBuilder<'v, S>

Implementations§

Source§

impl<'o, 'v, 's, S: BuilderSpecificState> ObjectFieldBuilder<'o, 'v, 's, S>

Source

pub fn new(key: &'s str, builder: &'o mut ObjectBuilder<'v, S>) -> Self

Trait Implementations§

Source§

impl<S: BuilderSpecificState> VariantBuilderExt for ObjectFieldBuilder<'_, '_, '_, S>

Source§

fn append_null(&mut self)

A NULL object field is interpreted as missing, so nothing gets inserted at all.

Source§

type State<'a> = ObjectState<'a> where Self: 'a

The builder specific state used by nested builders
Source§

fn append_value<'m, 'v>(&mut self, value: impl Into<Variant<'m, 'v>>)

Appends a new variant value to this builder. See e.g. VariantBuilder::append_value.
Source§

fn try_new_list( &mut self, ) -> Result<ListBuilder<'_, Self::State<'_>>, ArrowError>

Creates a nested list builder. See e.g. VariantBuilder::new_list. Returns an error if the nested builder cannot be created, see e.g. ObjectBuilder::try_new_list.
Source§

fn try_new_object( &mut self, ) -> Result<ObjectBuilder<'_, Self::State<'_>>, ArrowError>

Creates a nested object builder. See e.g. VariantBuilder::new_object. Returns an error if the nested builder cannot be created, see e.g. ObjectBuilder::try_new_object.
Source§

fn new_list(&mut self) -> ListBuilder<'_, Self::State<'_>>

Creates a nested list builder. See e.g. VariantBuilder::new_list. Panics if the nested builder cannot be created, see e.g. ObjectBuilder::new_list.
Source§

fn new_object(&mut self) -> ObjectBuilder<'_, Self::State<'_>>

Creates a nested object builder. See e.g. VariantBuilder::new_object. Panics if the nested builder cannot be created, see e.g. ObjectBuilder::new_object.

Auto Trait Implementations§

§

impl<'o, 'v, 's, S> Freeze for ObjectFieldBuilder<'o, 'v, 's, S>

§

impl<'o, 'v, 's, S> !RefUnwindSafe for ObjectFieldBuilder<'o, 'v, 's, S>

§

impl<'o, 'v, 's, S> !Send for ObjectFieldBuilder<'o, 'v, 's, S>

§

impl<'o, 'v, 's, S> !Sync for ObjectFieldBuilder<'o, 'v, 's, S>

§

impl<'o, 'v, 's, S> Unpin for ObjectFieldBuilder<'o, 'v, 's, S>

§

impl<'o, 'v, 's, S> !UnwindSafe for ObjectFieldBuilder<'o, 'v, 's, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.