Skip to main content

ephemeris_forge_forgejo/api/model/
deploy_keys.rs

1use facet::Facet;
2
3/// A deploy key as Forgejo reports it.
4#[derive(Clone, Debug, Default, Eq, Facet, PartialEq)]
5pub struct DeployKey {
6    /// The key's numeric identifier, which addresses it in later writes.
7    pub id: i64,
8    /// The key's title.
9    pub title: Option<String>,
10    /// The public key.
11    pub key: Option<String>,
12    /// Whether the key can only read.
13    pub read_only: Option<bool>,
14}