diff --git a/src/msg.rs b/src/msg.rs index bbb06976..d23f843d 100644 --- a/src/msg.rs +++ b/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)]