octocrate 0.1.6

A library of github API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct GithubPermissions {
  metadata: String,
  contents: String,
  issues: String,
  single_file: Option<String>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct GithubRepositoryPermissions {
  pub admin: bool,
  pub push: bool,
  pub pull: bool,
  pub triage: Option<bool>,
}