pub struct PyClassArgs {
    pub freelist: Option<Expr>,
    pub name: Option<Ident>,
    pub base: TypePath,
    pub has_dict: bool,
    pub has_weaklist: bool,
    pub is_basetype: bool,
    pub has_extends: bool,
    pub has_unsendable: bool,
    pub module: Option<LitStr>,
    pub class_kind: PyClassKind,
    pub deprecations: Deprecations,
}
Expand description

The parsed arguments of the pyclass macro

Fields

freelist: Option<Expr>name: Option<Ident>base: TypePathhas_dict: boolhas_weaklist: boolis_basetype: boolhas_extends: boolhas_unsendable: boolmodule: Option<LitStr>class_kind: PyClassKinddeprecations: Deprecations

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.