diff --git a/src/api_data/user_like_api.rs b/src/api_data/user_like_api.rs index e82621d..4786a05 100644 --- a/src/api_data/user_like_api.rs +++ b/src/api_data/user_like_api.rs @@ -7,9 +7,10 @@ use serde::Serialize; use crate::data::user_like::UserLike; #[derive(Serialize)] +#[allow(non_snake_case)] pub struct UserLikeAPI { id: u64, - user_id: u64, + userID: u64, time_sent: u64, elem_type: String, elem_id: u64, @@ -19,7 +20,7 @@ impl UserLikeAPI { pub fn new(l: &UserLike) -> UserLikeAPI { UserLikeAPI { id: l.id, - user_id: l.user_id.id(), + userID: l.user_id.id(), time_sent: l.time_sent, elem_type: l.elem_type.clone(), elem_id: l.elem_id,