pub struct ModuleView {
pub id: String,
pub title: String,
pub description: String,
pub stability: Option<Stability>,
pub source: String,
pub capabilities: usize,
pub capability_ids: Vec<String>,
pub source_path: Option<String>,
pub rustdoc: Option<ReferencePage>,
}Expand description
One module.
Fields§
§id: StringThe module id.
title: StringThe short name.
description: StringOne paragraph.
stability: Option<Stability>Where the module stands, when it declared it.
source: Stringbuiltin or declarative.
capabilities: usizeCapabilities it composes.
capability_ids: Vec<String>The ids of its builtin capabilities, in registry order; empty for a declarative module.
source_path: Option<String>Repository-relative path of the Rust file the module’s descriptors were composed in, for a builtin module.
rustdoc: Option<ReferencePage>The page the crate’s published reference documents the module on, for a builtin
module whose Rust module the crate exports. Absent for a module rustdoc gives no
page (pub(crate) or private), for a declarative module, and for every module of a
repository without the crate.
Trait Implementations§
Source§impl Clone for ModuleView
impl Clone for ModuleView
Source§fn clone(&self) -> ModuleView
fn clone(&self) -> ModuleView
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 ModuleView
impl Debug for ModuleView
Source§impl Ordered for ModuleView
A module is presented by its id, the same string its capabilities are prefixed with.
impl Ordered for ModuleView
A module is presented by its id, the same string its capabilities are prefixed with.
Auto Trait Implementations§
impl Freeze for ModuleView
impl RefUnwindSafe for ModuleView
impl Send for ModuleView
impl Sync for ModuleView
impl Unpin for ModuleView
impl UnsafeUnpin for ModuleView
impl UnwindSafe for ModuleView
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