pub struct PyModuleRecord {
pub name: String,
pub node_id: String,
pub synopsis: String,
pub platform: String,
pub deprecated: bool,
pub source: u16,
pub lineno: u32,
}Expand description
One PythonDomain.note_module call (PyModule.run,
domains/python/__init__.py:515-521) — the modname → ModuleEntry
registration feeding the env layer and, later, the py-modindex.
Fields§
§name: String§node_id: Stringmodule-<name> (or its module-<n> collision serial).
synopsis: String:synopsis: option, '' when absent. (A bare :synopsis: with no
value is Python None in sphinx’s identity-lambda option spec; it is
recorded as '' here — probe module_synopsis_bare.)
platform: String:platform: option, '' when absent.
deprecated: bool:deprecated: flag.
source: u16Source-table index of the directive. Deliberately not
#[serde(default)] (cache-shape rule, see
RegistryExport::program_options).
lineno: u321-based line of the directive marker.
Trait Implementations§
Source§impl Clone for PyModuleRecord
impl Clone for PyModuleRecord
Source§fn clone(&self) -> PyModuleRecord
fn clone(&self) -> PyModuleRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PyModuleRecord
impl Debug for PyModuleRecord
Source§impl<'de> Deserialize<'de> for PyModuleRecord
impl<'de> Deserialize<'de> for PyModuleRecord
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
Auto Trait Implementations§
impl Freeze for PyModuleRecord
impl RefUnwindSafe for PyModuleRecord
impl Send for PyModuleRecord
impl Sync for PyModuleRecord
impl Unpin for PyModuleRecord
impl UnsafeUnpin for PyModuleRecord
impl UnwindSafe for PyModuleRecord
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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