comment_app_backend 0.1.0

Serves comments through Restful APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// user.rs
// It is a partial user functions for comment. Application, that uses this comment app, 
// may have full user details; modify user structure and functions here accordinlgy.

use serde_derive::{Serialize, Deserialize};

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct User {
    pub name: String,

    pub email: String,

    pub avatar: String,

    pub unique_id: String
}