pub struct Bool8Field { /* private fields */ }Expand description
A helper to construct new Bool8 fields (arrow.bool8)
This extension type can be used with overwrites in schema tracing:
#[derive(Deserialize)]
struct Record {
int_field: i32,
nested: Nested,
}
#[derive(Deserialize)]
struct Nested {
bool_field: bool,
}
let tracing_options = TracingOptions::default()
.overwrite("nested.bool_field", Bool8Field::new("bool_field"))?;
let schema = SerdeArrowSchema::from_type::<Record>(tracing_options)?;It can also be converted to a arrow Field for manual schema manipulation.
Implementations§
Trait Implementations§
Source§impl Serialize for Bool8Field
impl Serialize for Bool8Field
Source§impl TryFrom<&Bool8Field> for Field
impl TryFrom<&Bool8Field> for Field
Source§impl TryFrom<&Bool8Field> for ArrowField
impl TryFrom<&Bool8Field> for ArrowField
Source§impl TryFrom<Bool8Field> for ArrowField
impl TryFrom<Bool8Field> for ArrowField
Auto Trait Implementations§
impl Freeze for Bool8Field
impl RefUnwindSafe for Bool8Field
impl Send for Bool8Field
impl Sync for Bool8Field
impl Unpin for Bool8Field
impl UnsafeUnpin for Bool8Field
impl UnwindSafe for Bool8Field
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> 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