-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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?
#[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
}Describe alternatives you've considered
NA
Additional context
NA
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request