Skip to content
Discussion options

You must be logged in to vote

Your assessment that this attribute is broken for any option type is wrong. You just need to have a existing TryFrom impl between both types. That can be done by for example using a custom non-option new type on one side.

What does not woraus converting from an option to an option type. That's a language limitation and nothing diesel can fix. If you have opinions about that please contact the rust project instead.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ruseinov
Comment options

@ruseinov
Comment options

@weiznich
Comment options

@ruseinov
Comment options

@ruseinov
Comment options

Answer selected by ruseinov
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