/* * Tests basic types usage */ use dict_derive::FromPyObject; #[derive(FromPyObject)] pub struct User { name: String, email: String, age: u16, } use std::option; #[derive(FromPyObject)] pub struct OptionalUser { name: Option, email: option::Option, age: std::option::Option, } #[derive(FromPyObject)] pub struct Nested { users: Vec, optional_user: Option, } fn main() {}