hackmd_rs/
team.rs

1use serde::{Deserialize, Serialize};
2use uuid::Uuid;
3
4#[derive(Debug, Deserialize, PartialEq, Serialize)]
5#[serde(rename_all = "camelCase")]
6pub struct Team {
7    id: Uuid,
8    owner_id: Uuid,
9    path: String,
10    name: String,
11    logo: String,
12    description: String,
13    // TODO: this should be an enum, but this is poorly documented :'(
14    // https://hackmd.io/@hackmd-api/developer-portal/https%3A%2F%2Fhackmd.io%2F%40hackmd-api%2Fuser-notes-api#Create-a-note
15    visibility: String,
16    // TODO: we should use chrono here
17    created_at: String,
18}