struct ContainerOptions {
transparent: bool,
from_item_all: Option<from_item_all>,
annotation: Option<LitStr>,
krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>,
}
Fields§
§transparent: bool
Treat the Container as a Wrapper, directly extract its fields from the input object.
from_item_all: Option<from_item_all>
Force every field to be extracted from item of source Python object.
annotation: Option<LitStr>
Change the name of an enum variant in the generated error message.
krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>
Change the path for the pyo3 crate
Implementations§
Source§impl ContainerOptions
impl ContainerOptions
fn from_attrs(attrs: &[Attribute]) -> Result<Self>
Trait Implementations§
Source§impl Default for ContainerOptions
impl Default for ContainerOptions
Source§fn default() -> ContainerOptions
fn default() -> ContainerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContainerOptions
impl RefUnwindSafe for ContainerOptions
impl !Send for ContainerOptions
impl !Sync for ContainerOptions
impl Unpin for ContainerOptions
impl UnwindSafe for ContainerOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more