[][src]Struct snekdown::references::bibliography::BibEntry

pub struct BibEntry {
    pub key: String,
    pub author: Option<String>,
    pub date: Option<String>,
    pub url: Option<String>,
    pub title: Option<String>,
    pub publisher: Option<String>,
    pub notes: Option<String>,
    pub display: Option<ConfigRefEntry>,
    pub hide_unused: Option<ConfigRefEntry>,
    // some fields omitted
}

Fields

key: Stringauthor: Option<String>date: Option<String>url: Option<String>title: Option<String>publisher: Option<String>notes: Option<String>display: Option<ConfigRefEntry>hide_unused: Option<ConfigRefEntry>

Implementations

impl BibEntry[src]

pub fn as_map(&self) -> HashMap<String, String>[src]

pub fn from_metadata(
    key: String,
    data: Box<dyn Metadata>,
    config: &Configuration
) -> Self
[src]

pub fn from_url(key: String, url: String, config: &Configuration) -> Self[src]

pub fn set_number(&mut self, number: usize)[src]

pub fn set_ref_count(&mut self, number: usize)[src]

pub fn is_visible(&self) -> bool[src]

Trait Implementations

impl Clone for BibEntry[src]

impl Debug for BibEntry[src]

impl ToHtml for BibEntry[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> 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.