Skip to main content

jira_core/model/
remote_link.rs

1/// A remote link attached to a Jira issue.
2///
3/// Returned by `GET /rest/api/3/issue/{key}/remotelink`. Only the fields
4/// consumed by this crate's callers are typed; the full Jira payload
5/// includes additional optional metadata (icon, status, application).
6#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
7#[serde(rename_all = "camelCase")]
8pub struct RemoteLink {
9    pub id: i64,
10    #[serde(rename = "self", default)]
11    pub self_url: Option<String>,
12    #[serde(default)]
13    pub global_id: Option<String>,
14    #[serde(default)]
15    pub relationship: Option<String>,
16    pub object: RemoteLinkObject,
17}
18
19#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
20pub struct RemoteLinkObject {
21    pub title: String,
22    pub url: String,
23    #[serde(default)]
24    pub summary: Option<String>,
25}