use keypath::{keypath, Keyable}; #[derive(Keyable)] struct Container { names: Vec, } fn main() { let _ = keypath!(Container.names[0]); }