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: String
Trait 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 write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
Write an iterator full of objects.
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