rocal-cli 0.2.3

CLI tool for Rocal - Full-Stack WASM framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Serialize;

#[derive(Serialize)]
pub struct CreateUser {
    email: String,
    password: String,
    workspace: String,
}

impl CreateUser {
    pub fn new(email: &str, password: &str, workspace: &str) -> Self {
        Self {
            email: email.to_string(),
            password: password.to_string(),
            workspace: workspace.to_string(),
        }
    }
}