Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

der: fix derive(Sequence) on field: Vec<u8> #1680

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dishmaker
Copy link
Contributor

@dishmaker dishmaker commented Feb 25, 2025

Fixes:

Adds attribute:

  • deref = "true"
#[derive(Sequence)]
pub struct MySequence {
    /// Without deref = "true" macro generates an error:
    ///
    /// the trait `From<Vec<u8>>` is not implemented for `BitStringRef<'_>`
    #[asn1(type = "OCTET STRING", deref = "true")]
    pub owned_bytes: Vec<u8>,
}

Is there any better way to add & ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant