pub struct RawInteraction {
pub user_id: String,
pub book_id: String,
pub review_id: String,
pub is_read: bool,
pub rating: f32,
pub date_added: String,
pub date_updated: String,
pub read_at: String,
pub started_at: String,
}Expand description
Interaction records we read from JSON.
Fields§
§user_id: String§book_id: String§review_id: String§is_read: bool§rating: f32§date_added: String§date_updated: String§read_at: String§started_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for RawInteraction
impl<'de> Deserialize<'de> for RawInteraction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ObjectWriter<RawInteraction> for IntWriter
impl ObjectWriter<RawInteraction> for IntWriter
Source§fn write_object(&mut self, row: RawInteraction) -> Result<()>
fn write_object(&mut self, row: RawInteraction) -> Result<()>
Write a single interaction to the output
Source§fn finish_objects(self) -> Result<usize>
fn finish_objects(self) -> Result<usize>
Finish and close the target.
Auto Trait Implementations§
impl Freeze for RawInteraction
impl RefUnwindSafe for RawInteraction
impl Send for RawInteraction
impl Sync for RawInteraction
impl Unpin for RawInteraction
impl UnwindSafe for RawInteraction
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