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.
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;
}
Trait for an interaction.