pub struct Style {
pub class: StyleClass,
pub version: String,
pub default_locale: Option<String>,
pub options: StyleOptions,
pub info: Info,
pub citation: Option<Citation>,
pub bibliography: Option<Bibliography>,
pub macros: BTreeMap<String, Vec<Element>>,
pub locales: Vec<LocaleBlock>,
}Expand description
A parsed CSL style (the <style> root element).
Fields§
§class: StyleClassWhether citations are in-text or notes (class attribute).
version: StringThe declared CSL version (version attribute, e.g. "1.0").
default_locale: Option<String>An optional overriding style locale (default-locale).
options: StyleOptionsGlobal style options retained for a future processor.
info: InfoStyle metadata from <info>.
citation: Option<Citation>The <citation> element, if present.
bibliography: Option<Bibliography>The <bibliography> element, if present.
macros: BTreeMap<String, Vec<Element>><macro> definitions keyed by name, in sorted order.
locales: Vec<LocaleBlock>In-style <locale> blocks retained as raw XML for future locale support.
Trait Implementations§
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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