#[non_exhaustive]pub struct StubGenConfig {
pub use_type_statement: bool,
}Expand description
Configuration options for stub generation from [tool.pyo3-stub-gen] in pyproject.toml.
This struct is marked as #[non_exhaustive] to allow adding new configuration
options in future versions without breaking backward compatibility.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.use_type_statement: boolWhether to use Python 3.12+ type statement syntax for type aliases.
Default is false (use pre-3.12 TypeAlias syntax).
Trait Implementations§
Source§impl Clone for StubGenConfig
impl Clone for StubGenConfig
Source§fn clone(&self) -> StubGenConfig
fn clone(&self) -> StubGenConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StubGenConfig
impl Debug for StubGenConfig
Source§impl Default for StubGenConfig
impl Default for StubGenConfig
Source§fn default() -> StubGenConfig
fn default() -> StubGenConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StubGenConfig
impl<'de> Deserialize<'de> for StubGenConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StubGenConfig
impl PartialEq for StubGenConfig
Source§impl Serialize for StubGenConfig
impl Serialize for StubGenConfig
impl Eq for StubGenConfig
impl StructuralPartialEq for StubGenConfig
Auto Trait Implementations§
impl Freeze for StubGenConfig
impl RefUnwindSafe for StubGenConfig
impl Send for StubGenConfig
impl Sync for StubGenConfig
impl Unpin for StubGenConfig
impl UnwindSafe for StubGenConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more