From 49c98e902a4b22f1892c009d4f4b2f1ae5ff0a70 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 13 Jul 2020 19:41:48 +0200 Subject: [PATCH] Fix error --- src/api_data/user_like_api.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,