Skip to content

Way to declare SET #38

Answered by XAMPPRocky
naveedpash asked this question in Q&A
Sep 15, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Thank you for your question! I have not written the documentation for SET types yet, as I haven't released it yet. But how you do it is very simple, you just add #[rasn(set)] to the container like #[rasn(choice)].

#[derive(Debug, AsnType, Encode, Decode)]
#[rasn(tag(universal, 17))]
#[rasn(set)]
pub struct ModeSelector {
  #[rasn(tag(0))]
  mode_value: u8
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@naveedpash
Comment options

Answer selected by naveedpash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants