pub struct ContainerAttributes {
pub transparent: Option<transparent>,
pub from_item_all: Option<from_item_all>,
pub annotation: Option<LitStr>,
pub krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>,
pub rename_all: Option<KeywordAttribute<rename_all, RenamingRuleLitStr>>,
}
Fields§
§transparent: Option<transparent>
Treat the Container as a Wrapper, operate directly on its field
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
rename_all: Option<KeywordAttribute<rename_all, RenamingRuleLitStr>>
Converts the field idents according to the RenamingRule before extraction
Implementations§
Source§impl ContainerAttributes
impl ContainerAttributes
pub fn from_attrs(attrs: &[Attribute]) -> Result<Self>
fn set_option(&mut self, option: ContainerAttribute) -> Result<()>
Trait Implementations§
Source§impl Default for ContainerAttributes
impl Default for ContainerAttributes
Source§fn default() -> ContainerAttributes
fn default() -> ContainerAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContainerAttributes
impl RefUnwindSafe for ContainerAttributes
impl !Send for ContainerAttributes
impl !Sync for ContainerAttributes
impl Unpin for ContainerAttributes
impl UnwindSafe for ContainerAttributes
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more