Skip to content

Commit 448c775

Browse files
committed
fix: missing documentation for discriminant enums
1 parent ed476ae commit 448c775

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/cardano-node/mithril-cardano-node-chain/src/entities/datum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ impl TxDatum {
105105
#[strum_discriminants(name(TxDatumFieldTypeName))]
106106
#[strum_discriminants(strum(serialize_all = "lowercase"))]
107107
#[strum_discriminants(serde(rename_all = "lowercase"))]
108+
#[strum_discriminants(doc = "The discriminants of the TxDatumFieldValue enum.")]
108109
pub enum TxDatumFieldValue {
109110
/// Bytes datum field value.
110111
Bytes(String),

mithril-common/src/entities/signed_entity_type.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const ENTITY_TYPE_CARDANO_DATABASE: usize = 4;
3939
// Important note: The order of the variants is important as it is used for the derived Ord trait.
4040
#[derive(Display, Debug, Clone, PartialEq, Eq, Serialize, Deserialize, EnumDiscriminants)]
4141
#[strum(serialize_all = "PascalCase")]
42+
#[strum_discriminants(doc = "The discriminants of the SignedEntityType enum.")]
4243
#[strum_discriminants(derive(
4344
Display,
4445
EnumString,

0 commit comments

Comments
 (0)