pub struct CliDocument {
pub schema: &'static str,
pub version: String,
pub source: &'static str,
pub route_prefix: &'static str,
pub cli: CommandDoc,
}Expand description
The machine-readable projection of the whole tree: docs/generated/cli.json, the file
the website’s generator reads. One document, deterministic, with no provenance of its
own beyond the crate version.
Fields§
§schema: &'static str§version: StringThe crate version that wrote it.
source: &'static strDECLARATION: the file every command in this document is declared in.
route_prefix: &'static strThe route prefix the command routes are under.
cli: CommandDocThe command tree, root first.
Trait Implementations§
Source§impl Clone for CliDocument
impl Clone for CliDocument
Source§fn clone(&self) -> CliDocument
fn clone(&self) -> CliDocument
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 CliDocument
impl Debug for CliDocument
impl Eq for CliDocument
Source§impl PartialEq for CliDocument
impl PartialEq for CliDocument
Source§fn eq(&self, other: &CliDocument) -> bool
fn eq(&self, other: &CliDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CliDocument
impl Serialize for CliDocument
impl StructuralPartialEq for CliDocument
Auto Trait Implementations§
impl Freeze for CliDocument
impl RefUnwindSafe for CliDocument
impl Send for CliDocument
impl Sync for CliDocument
impl Unpin for CliDocument
impl UnsafeUnpin for CliDocument
impl UnwindSafe for CliDocument
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.