Skip to main content

ephemeris_forge_github/api/model/
autolinks.rs

1use facet::Facet;
2
3/// An autolink reference as GitHub reports it.
4#[derive(Clone, Debug, Eq, Facet, PartialEq)]
5pub struct Autolink {
6    /// The id GitHub gave the autolink.
7    pub id: u64,
8    /// The prefix that starts a reference.
9    pub key_prefix: String,
10    /// The link target, with `<num>` where the reference number goes.
11    pub url_template: String,
12    /// Whether the reference may contain letters.
13    pub is_alphanumeric: bool,
14}