Skip to content

Commit

Permalink
doc(der_derive): Add documentation for field-level tag_mode attribute. (
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbanchi committed May 10, 2024
1 parent 471c073 commit cde2991
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions der/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@
//! Note: please open a GitHub Issue if you would like to request support
//! for additional ASN.1 types.
//!
//! ### `#[asn1(tag_mode = "...")]` attribute: `EXPLICIT` vs `IMPLICIT`
//!
//! This attribute can be used to declare the tagging mode used for a field of a `struct`
//! which derives [`Sequence`] or for a variant of an `enum` which derives [`Choice`].
//! It allows to override the toplevel `tag_mode` attribute, for the fields and variants that
//! specify it.
//!
//! [`der`]: https://docs.rs/der/
//! [`Choice`]: derive@Choice
//! [`Sequence`]: derive@Sequence
Expand Down

0 comments on commit cde2991

Please sign in to comment.