We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to support custom from / into attribute function.
Can this feature be realized by the following?
#[derive(Raiden)] struct Foo { id: String #[raiden(from_fn(custom_fn))] greeting: String } fn custom_fn(value: Option<raiden::AttributeValue>) -> Result<String, RaidenError> { // ... convert attribute to String }
NA
The text was updated successfully, but these errors were encountered:
#[derive(Raiden)] struct Foo { id: String #[raiden(from_attr_fn(custom_fn))] greeting: String } impl Foo { fn custom_attr_fn(value: Option<raiden::AttributeValue>) -> Result<String, RaidenError> { // ... convert attribute to String } }
Sorry, something went wrong.
I'd like to add from_attr_map_fn like following too.
#[derive(Raiden)] struct Foo { id: String #[raiden(from_attr_map_fn(custom_fn))] greeting: String } impl Foo { fn custom_attr_map_fn(map: &HashMap<String, AttributeValue>) -> Result<String, RaidenError> { // ... convert attribute to String } }
No branches or pull requests
Is your feature request related to a problem? Please describe.
I'd like to support custom from / into attribute function.
Describe the solution you'd like
Can this feature be realized by the following?
Describe alternatives you've considered
NA
Additional context
NA
The text was updated successfully, but these errors were encountered: