Skip to content

Commit d7517dc

Browse files
authored
Merge pull request #297 from pbeza/patrick/add-clone-trait
chore: Add additional common traits to `TcbInfo` and `EventLog`
2 parents f8ad3b0 + 9251fe6 commit d7517dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/rust/types/src/dstack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn replay_rtmr(history: Vec<String>) -> Result<String, FromHexError> {
3131
}
3232

3333
/// Represents an event log entry in the system
34-
#[derive(Debug, Serialize, Deserialize)]
34+
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Serialize, Deserialize)]
3535
#[cfg_attr(feature = "borsh", derive(BorshSerialize, BorshDeserialize))]
3636
pub struct EventLog {
3737
/// The index of the IMR (Integrity Measurement Register)
@@ -164,7 +164,7 @@ impl InfoResponse {
164164
}
165165

166166
/// Trusted Computing Base information structure
167-
#[derive(Debug, Serialize, Deserialize)]
167+
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Serialize, Deserialize)]
168168
#[cfg_attr(feature = "borsh", derive(BorshSerialize, BorshDeserialize))]
169169
pub struct TcbInfo {
170170
/// The measurement root of trust

0 commit comments

Comments
 (0)