diff options
Diffstat (limited to 'crates/nixpkgs-tracker-http/src/model.rs')
| -rw-r--r-- | crates/nixpkgs-tracker-http/src/model.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/nixpkgs-tracker-http/src/model.rs b/crates/nixpkgs-tracker-http/src/model.rs new file mode 100644 index 0000000..9439538 --- /dev/null +++ b/crates/nixpkgs-tracker-http/src/model.rs @@ -0,0 +1,19 @@ +use serde::Deserialize; + +/// Bad version of `/repos/{owner}/{repo}/pulls/{pull_number}` for Github's api +#[derive(Clone, Debug, Deserialize)] +pub struct PullRequest { + pub html_url: String, + pub number: u64, + pub title: String, + pub merged: bool, + pub merged_at: Option<String>, + pub merge_commit_sha: Option<String>, +} + +/// `/random_teawie` for the teawieAPI +#[derive(Clone, Debug, Deserialize)] +pub struct RandomTeawie { + pub url: Option<String>, + pub error: Option<String>, +} |
