Struct hayagriva::BibliographyRequest
source · pub struct BibliographyRequest<'a> {
pub style: &'a IndependentStyle,
pub locale: Option<LocaleCode>,
pub locale_files: &'a [Locale],
}
Expand description
A request to render a bibliography. Use with BibliographyDriver::finish
.
Fields§
§style: &'a IndependentStyle
Which style to use for the bibliography. Some styles do not have a
bibliography, in which case the field of the Rendered
will be
None
.
locale: Option<LocaleCode>
The requested locale for the style’s terms.
This is also the place to store a locale override from a dependent style.
locale_files: &'a [Locale]
The files used to retrieve locale settings and terms if the style does not define all neccessary items.
Implementations§
source§impl<'a> BibliographyRequest<'a>
impl<'a> BibliographyRequest<'a>
sourcepub fn new(
style: &'a IndependentStyle,
locale: Option<LocaleCode>,
locale_files: &'a [Locale]
) -> Self
pub fn new( style: &'a IndependentStyle, locale: Option<LocaleCode>, locale_files: &'a [Locale] ) -> Self
Create a new bibliography request.
Trait Implementations§
source§impl<'a> Debug for BibliographyRequest<'a>
impl<'a> Debug for BibliographyRequest<'a>
source§impl<'a> PartialEq for BibliographyRequest<'a>
impl<'a> PartialEq for BibliographyRequest<'a>
source§fn eq(&self, other: &BibliographyRequest<'a>) -> bool
fn eq(&self, other: &BibliographyRequest<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for BibliographyRequest<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BibliographyRequest<'a>
impl<'a> Send for BibliographyRequest<'a>
impl<'a> Sync for BibliographyRequest<'a>
impl<'a> Unpin for BibliographyRequest<'a>
impl<'a> UnwindSafe for BibliographyRequest<'a>
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