pub struct PyFunctionOptions {
    pub pass_module: Option<pass_module>,
    pub name: Option<KeywordAttribute<name, NameLitStr>>,
    pub deprecated_args: Option<DeprecatedArgs>,
    pub signature: Option<KeywordAttribute<signature, Signature>>,
    pub text_signature: Option<KeywordAttribute<text_signature, TextSignatureAttributeValue>>,
    pub deprecations: Deprecations,
    pub krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>,
}

Fields§

§pass_module: Option<pass_module>§name: Option<KeywordAttribute<name, NameLitStr>>§deprecated_args: Option<DeprecatedArgs>§signature: Option<KeywordAttribute<signature, Signature>>§text_signature: Option<KeywordAttribute<text_signature, TextSignatureAttributeValue>>§deprecations: Deprecations§krate: Option<KeywordAttribute<Crate, LitStrValue<Path>>>

Implementations§

Trait Implementations§

Returns the “default value” for a type. Read more

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.