Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat(src/msg.rs): add RunId::as_str method
Lars Wirzenius committed 1 year ago
commit eeb79ef0903045ee027ced7aaece0ac59399841a
parent 9d912e6ee67ef2de6eb38d628ee287c51568c097
1 file changed +7 -0
modified src/msg.rs
@@ -77,6 +77,13 @@ impl fmt::Display for RunId {
    }
}

+
impl RunId {
+
    /// Return representation of identifier as a string slice.
+
    pub fn as_str(&self) -> &str {
+
        &self.id
+
    }
+
}
+

/// The result of a CI run.
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]