Skip to content

Commit 8e5fea5

Browse files
committed
chore: doc
1 parent 43473ea commit 8e5fea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/signed_doc/src/validator/rules/content_type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ use crate::{metadata::ContentType, CatalystSignedDocument};
55
/// `content-type` field validation rule
66
#[derive(Debug)]
77
pub(crate) enum ContentTypeRule {
8+
/// Content Type field must be present with the specific type in the document.
89
Specified {
910
/// expected `content-type` field
1011
exp: ContentType,
1112
},
13+
/// Content Type field must not be present in the document.
1214
NotSpecified,
1315
}
1416

0 commit comments

Comments
 (0)