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

Non-exhaustive LDAP structs #48

Closed
ancwrd1 opened this issue Oct 4, 2021 · 1 comment · Fixed by #122 or #128
Closed

Non-exhaustive LDAP structs #48

ancwrd1 opened this issue Oct 4, 2021 · 1 comment · Fixed by #122 or #128

Comments

@ancwrd1
Copy link
Contributor

ancwrd1 commented Oct 4, 2021

Most of the top-level rasn-ldap structs are declared with non-exhaustive attribute which prevents them from being constructed outside of the rasn-ldap crate.
How is the LdapMessage supposed to be constructed for encoding?

@XAMPPRocky
Copy link
Collaborator

Thank you for your issue! Yeah, it's a bit of an annoying situation at the moment. The correct solution would probably be to add constructors for the types with just the required arguments. Though it's a bit of boilerplate work so I won't be able to add it immediately. If you (or someone else) wants to make a PR adding it I would accept it.

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