pub struct RecommendationEvent {
pub created_at: String,
pub dataset_id: Uuid,
pub id: Uuid,
pub negative_ids: Vec<Uuid>,
pub negative_tracking_ids: Vec<String>,
pub positive_ids: Vec<Uuid>,
pub positive_tracking_ids: Vec<String>,
pub recommendation_type: String,
pub request_params: Option<Value>,
pub results: Vec<Value>,
pub top_score: f32,
pub user_id: String,
}Fields§
§created_at: String§dataset_id: Uuid§id: Uuid§negative_ids: Vec<Uuid>§negative_tracking_ids: Vec<String>§positive_ids: Vec<Uuid>§positive_tracking_ids: Vec<String>§recommendation_type: String§request_params: Option<Value>§results: Vec<Value>§top_score: f32§user_id: StringImplementations§
Source§impl RecommendationEvent
impl RecommendationEvent
pub fn new( created_at: String, dataset_id: Uuid, id: Uuid, negative_ids: Vec<Uuid>, negative_tracking_ids: Vec<String>, positive_ids: Vec<Uuid>, positive_tracking_ids: Vec<String>, recommendation_type: String, request_params: Option<Value>, results: Vec<Value>, top_score: f32, user_id: String, ) -> RecommendationEvent
Trait Implementations§
Source§impl Clone for RecommendationEvent
impl Clone for RecommendationEvent
Source§fn clone(&self) -> RecommendationEvent
fn clone(&self) -> RecommendationEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecommendationEvent
impl Debug for RecommendationEvent
Source§impl Default for RecommendationEvent
impl Default for RecommendationEvent
Source§fn default() -> RecommendationEvent
fn default() -> RecommendationEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RecommendationEvent
impl<'de> Deserialize<'de> for RecommendationEvent
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 PartialEq for RecommendationEvent
impl PartialEq for RecommendationEvent
Source§impl Serialize for RecommendationEvent
impl Serialize for RecommendationEvent
impl StructuralPartialEq for RecommendationEvent
Auto Trait Implementations§
impl Freeze for RecommendationEvent
impl RefUnwindSafe for RecommendationEvent
impl Send for RecommendationEvent
impl Sync for RecommendationEvent
impl Unpin for RecommendationEvent
impl UnwindSafe for RecommendationEvent
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