hackmd-rs 0.2.0

Rust HackMD client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Debug, Deserialize, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Team {
    id: Uuid,
    owner_id: Uuid,
    path: String,
    name: String,
    logo: String,
    description: String,
    // TODO: this should be an enum, but this is poorly documented :'(
    // https://hackmd.io/@hackmd-api/developer-portal/https%3A%2F%2Fhackmd.io%2F%40hackmd-api%2Fuser-notes-api#Create-a-note
    visibility: String,
    // TODO: we should use chrono here
    created_at: String,
}