Skip to content

Commit b713b8e

Browse files
committed
fix(rust/signed_doc): add serde::Serialize to AdditionalFields and DocumentRef
1 parent aca802a commit b713b8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rust/signed_doc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ workspace = true
1212

1313
[dependencies]
1414
cardano-blockchain-types = { version = "0.0.1", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "v0.0.11" }
15-
catalyst-types = { version = "0.0.1", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250107-00" }
15+
catalyst-types = { version = "0.0.1", git = "https://github.com/input-output-hk/catalyst-libs.git", tag = "r20250111-00" }
1616
anyhow = "1.0.95"
1717
serde = { version = "1.0.217", features = ["derive"] }
1818
serde_json = "1.0.134"

rust/signed_doc/src/metadata/additional_fields.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use super::{cose_protected_header_find, DocumentRef};
77
/// Additional Metadata Fields.
88
///
99
/// These values are extracted from the COSE Sign protected header labels.
10-
#[derive(Default, Debug, serde::Deserialize)]
10+
#[derive(Default, Debug, serde::Serialize, serde::Deserialize)]
1111
pub(super) struct AdditionalFields {
1212
/// Reference to the latest document.
1313
#[serde(rename = "ref")]

rust/signed_doc/src/metadata/document_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use super::UuidV7;
33

44
/// Reference to a Document.
5-
#[derive(Copy, Clone, Debug, serde::Deserialize)]
5+
#[derive(Copy, Clone, Debug, serde::Serialize, serde::Deserialize)]
66
#[serde(untagged)]
77
pub enum DocumentRef {
88
/// Reference to the latest document

0 commit comments

Comments
 (0)