[][src]Struct gm_docs_parser::GmManualConstant

pub struct GmManualConstant {
    pub name: String,
    pub description: String,
    pub link: Url,
    pub secondary_descriptors: Option<BTreeMap<String, String>>,
}

A constant parsed from the GmManual.

Because parsing constants is difficult, none of these fields are guarenteed to be non-empty except for [name]. Additionally, a constant might have more data than just a description -- if that is the case, additional data will be noted in [secondary_descriptors]. As a consequence of this, if the description is empty, then secondary_descriptors will also always be empty.

Fields

name: String

The name of the constant

description: String

A description of the constant

link: Url

The link to the webpage.

secondary_descriptors: Option<BTreeMap<String, String>>

Additional descriptors present. Most of the time, this will be None, but can have some Descriptors and Values present.

Trait Implementations

impl Clone for GmManualConstant[src]

impl Debug for GmManualConstant[src]

impl<'de> Deserialize<'de> for GmManualConstant[src]

impl Eq for GmManualConstant[src]

impl Ord for GmManualConstant[src]

impl PartialEq<GmManualConstant> for GmManualConstant[src]

impl PartialOrd<GmManualConstant> for GmManualConstant[src]

impl Serialize for GmManualConstant[src]

impl StructuralEq for GmManualConstant[src]

impl StructuralPartialEq for GmManualConstant[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.