Currently, the key field in the venndb
library is limited to pointing to struct fields. We could an enhancement to allow the key field to point to functions inside the struct, providing more flexibility in key definitions and usage.
#[derive(VennDB)]
#[venndb(key = "get_dynamic_key")]
struct ExampleStruct {
#[venndb(key)]
id: u32,
name: String,
}
impl ExampleStruct {
fn get_dynamic_key(&self) -> u32 {
}
}
Increased flexibility in defining keys for the venndb library.
Support for dynamic key generation based on custom logic.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too