bookdata::interactions

Trait Interaction

Source
pub trait Interaction {
    // Required methods
    fn get_user(&self) -> i32;
    fn get_item(&self) -> i32;
    fn get_rating(&self) -> Option<f32>;
    fn get_timestamp(&self) -> i64;
}
Expand description

Trait for an interaction.

Required Methods§

Source

fn get_user(&self) -> i32

Source

fn get_item(&self) -> i32

Source

fn get_rating(&self) -> Option<f32>

Source

fn get_timestamp(&self) -> i64

Implementors§