Struct bookdata::goodreads::review::ReviewRecord
source · pub struct ReviewRecord {
pub rec_id: u32,
pub review_id: i64,
pub user_id: i32,
pub book_id: i32,
pub work_id: Option<i32>,
pub cluster: i32,
pub rating: Option<f32>,
pub review: String,
pub n_votes: i32,
pub added: f32,
pub updated: f32,
}
Expand description
Review records to write to the Parquet table.
Fields§
§rec_id: u32
Internal auto-genereated record identifier.
review_id: i64
Review identifier (derived from input).
user_id: i32
User identifier.
book_id: i32
GoodReads book identifier.
work_id: Option<i32>
GoodReads work identifier.
cluster: i32
Cluster identifier (from integration clustering).
rating: Option<f32>
Rating associated with this review (if provided).
review: String
Review text.
n_votes: i32
Number of votes this review has received.
added: f32
Date review was added.
updated: f32
Date review was updated.
Trait Implementations§
source§impl FrameBuilder<ReviewRecord> for ReviewRecordFrameBuilder
impl FrameBuilder<ReviewRecord> for ReviewRecordFrameBuilder
source§fn with_capacity(cap: usize) -> Self
fn with_capacity(cap: usize) -> Self
Instantiate a frame builder with a specified capacity.
source§fn append_row(&mut self, row: ReviewRecord)
fn append_row(&mut self, row: ReviewRecord)
Add a row to the frame builder.
source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = R>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = R>,
Add an iterable of items to the frame.
source§impl<'a> FrameStruct<'a, ReviewRecord> for ReviewRecordFrame<'a>
impl<'a> FrameStruct<'a, ReviewRecord> for ReviewRecordFrame<'a>
source§impl TableRow for ReviewRecord
impl TableRow for ReviewRecord
§type Frame<'a> = ReviewRecordFrame<'a>
type Frame<'a> = ReviewRecordFrame<'a>
The frame struct for this row type.
§type Builder = ReviewRecordFrameBuilder
type Builder = ReviewRecordFrameBuilder
The frame builder type for this row type.
Auto Trait Implementations§
impl RefUnwindSafe for ReviewRecord
impl Send for ReviewRecord
impl Sync for ReviewRecord
impl Unpin for ReviewRecord
impl UnwindSafe for ReviewRecord
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