microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
flowey/flowey_core/src/node/spec.rs
19lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | //! Type definitions from GitHub events and payloads. <https://docs.github.com/en/webhooks/webhook-events-and-payloads> |
| 5 | |
| 6 | use serde::Deserialize; |
| 7 | use serde::Serialize; |
| 8 | |
| 9 | #[derive(Serialize, Deserialize)] |
| 10 | pub struct Head { |
| 11 | #[serde(rename = "ref")] |
| 12 | pub head_ref: String, |
| 13 | } |
| 14 | |
| 15 | #[derive(Serialize, Deserialize)] |
| 16 | pub struct GhContextVarReaderEventPullRequest { |
| 17 | pub head: Head, |
| 18 | pub number: u32, |
| 19 | } |
| 20 | |