pub struct PythonDocExtensions {
pub is_generator: bool,
pub is_async_generator: bool,
pub class_attributes: Vec<(String, Option<String>, Option<String>)>,
pub instance_vars: Vec<(String, Option<String>, Option<String>)>,
pub class_vars: Vec<(String, Option<String>, Option<String>)>,
pub methods: Vec<(String, Option<String>)>,
pub kwargs: Vec<(String, Option<String>, Option<String>)>,
pub version: Option<String>,
pub since: Option<String>,
pub warnings: Vec<String>,
pub meta: Vec<(String, String)>,
}Expand description
@acp:summary “Python-specific extensions for docstrings”
Fields§
§is_generator: boolWhether this is a generator function (has Yields)
is_async_generator: boolWhether this is an async function (has Receives for async generators)
class_attributes: Vec<(String, Option<String>, Option<String>)>Class attributes (for class docstrings)
instance_vars: Vec<(String, Option<String>, Option<String>)>Instance variables
class_vars: Vec<(String, Option<String>, Option<String>)>Class variables
methods: Vec<(String, Option<String>)>Methods (for class docstrings)
kwargs: Vec<(String, Option<String>, Option<String>)>Keyword arguments (separate from regular params)
version: Option<String>Version info
since: Option<String>Since version
warnings: Vec<String>Warnings (distinct from notes)
meta: Vec<(String, String)>Meta information
Trait Implementations§
Source§impl Clone for PythonDocExtensions
impl Clone for PythonDocExtensions
Source§fn clone(&self) -> PythonDocExtensions
fn clone(&self) -> PythonDocExtensions
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 PythonDocExtensions
impl Debug for PythonDocExtensions
Source§impl Default for PythonDocExtensions
impl Default for PythonDocExtensions
Source§fn default() -> PythonDocExtensions
fn default() -> PythonDocExtensions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PythonDocExtensions
impl RefUnwindSafe for PythonDocExtensions
impl Send for PythonDocExtensions
impl Sync for PythonDocExtensions
impl Unpin for PythonDocExtensions
impl UnwindSafe for PythonDocExtensions
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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