pub struct BookRecord {
pub book_id: i32,
pub title: Option<String>,
pub pub_year: Option<u16>,
pub pub_month: Option<u8>,
}
Expand description
book info records to actually write
Fields§
§book_id: i32
§title: Option<String>
§pub_year: Option<u16>
§pub_month: Option<u8>
Trait Implementations§
Source§impl RecordWriter<BookRecord> for &[BookRecord]
impl RecordWriter<BookRecord> for &[BookRecord]
Source§fn write_to_row_group<W: Write + Send>(
&self,
row_group_writer: &mut SerializedRowGroupWriter<'_, W>,
) -> Result<(), ParquetError>
fn write_to_row_group<W: Write + Send>( &self, row_group_writer: &mut SerializedRowGroupWriter<'_, W>, ) -> Result<(), ParquetError>
Writes from
self
into row_group_writer
.Auto Trait Implementations§
impl Freeze for BookRecord
impl RefUnwindSafe for BookRecord
impl Send for BookRecord
impl Sync for BookRecord
impl Unpin for BookRecord
impl UnwindSafe for BookRecord
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