User type is more relaxed now
@@ -4,10 +4,11 @@ use serde_derive::*;
#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct User {
+ #[serde(rename="_id")]
pub id: String,
pub email: String,
- pub fb_id: String,
- pub avatar: String,
+ pub fb_id: Option<String>,
+ pub avatar: Option<String>,
pub last_modified: DateTime<Utc>,
pub date_registered: DateTime<Utc>,
// @TODO: others?
