Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
chore: make Request and Response cloneable
Lars Wirzenius committed 2 years ago
commit 7b31ac5c465c40559aa796b4913a6749cd1b6d6c
parent f37948149bb0fda3b4428751cf074c4432e152ad
1 file changed +3 -3
modified src/msg.rs
@@ -23,7 +23,7 @@ pub use radicle::prelude::{Id, NodeId};
/// let id = RunId::from("abracadabra");
/// println!("{}", id.to_string());
/// ```
-
#[derive(Debug, Serialize, Deserialize)]
+
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RunId {
    id: String,
}
@@ -67,7 +67,7 @@ impl fmt::Display for RunResult {
}

/// A request message sent by the broker to its adapter child process.
-
#[derive(Debug, Serialize, Deserialize)]
+
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "request")]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
@@ -106,7 +106,7 @@ impl Request {
}

/// A response message from the adapter child process to the broker.
-
#[derive(Debug, Serialize, Deserialize)]
+
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
#[serde(rename_all = "snake_case")]
#[serde(tag = "response")]