pub enum EntryType<'a> {
Show 32 variants
Article,
Book,
Booklet,
MvBook,
InBook,
BookInBook,
SuppBook,
Collection,
MvCollection,
InCollection,
SuppCollection,
InProceedings,
Proceedings,
MvProceedings,
Reference,
InReference,
Manual,
MastersThesis,
PhdThesis,
Thesis,
TechReport,
Report,
Patent,
Periodical,
Online,
Software,
Dataset,
Set,
XData,
Unpublished,
Misc,
Custom(Cow<'a, str>),
}Expand description
BibTeX entry type
Variants§
Article
Article from a journal
Book
Book with publisher
Booklet
Booklet without a named publisher
MvBook
A multi-volume book (biblatex)
InBook
Part of a book
BookInBook
A self-contained book part published as a book (biblatex)
SuppBook
Supplemental material in a book (biblatex)
Collection
A collection with its own title
MvCollection
A multi-volume collection (biblatex)
InCollection
A contribution to a collection
SuppCollection
Supplemental material in a collection (biblatex)
InProceedings
Article in conference proceedings
Proceedings
Conference proceedings
MvProceedings
Multi-volume proceedings (biblatex)
Reference
A reference work (biblatex)
InReference
A contribution to a reference work (biblatex)
Manual
Technical documentation or manual
MastersThesis
Master’s thesis
PhdThesis
PhD thesis
Thesis
Generic thesis (biblatex)
TechReport
Technical report
Report
Generic report (biblatex)
Patent
Patent or patent request (biblatex)
Periodical
Periodical issue (biblatex)
Online
Online resource (biblatex)
Software
Software artifact (biblatex and common repository exports)
Dataset
Dataset artifact (biblatex and common repository exports)
Set
Entry set (biblatex)
XData
Reusable data-only entry (biblatex)
Unpublished
Unpublished work
Misc
Miscellaneous
Custom(Cow<'a, str>)
Custom entry type
Implementations§
Source§impl<'a> EntryType<'a>
impl<'a> EntryType<'a>
Sourcepub const fn required_fields(&self) -> &'static [&'static str]
pub const fn required_fields(&self) -> &'static [&'static str]
Get required fields for this entry type
Sourcepub const fn required_field_groups(&self) -> &'static [&'static [&'static str]]
pub const fn required_field_groups(&self) -> &'static [&'static [&'static str]]
Get required field groups for validation.
Each inner group is an OR-list. For example, ["author", "editor"]
means either field satisfies that requirement.
Sourcepub fn canonical_name(&self) -> &str
pub fn canonical_name(&self) -> &str
Return the canonical lowercase entry type name.
Sourcepub const fn aliases(&self) -> &'static [&'static str]
pub const fn aliases(&self) -> &'static [&'static str]
Return common aliases that parse to this entry type.
Sourcepub const fn is_classic_bibtex(&self) -> bool
pub const fn is_classic_bibtex(&self) -> bool
Return true for the classic BibTeX entry types.
Sourcepub const fn is_extended(&self) -> bool
pub const fn is_extended(&self) -> bool
Return true for entry types that are specific to BibLaTeX or common repository exports.
Sourcepub fn into_owned(self) -> EntryType<'static>
pub fn into_owned(self) -> EntryType<'static>
Convert to owned version
Trait Implementations§
Source§impl<'a> PartialEq for EntryType<'a>
impl<'a> PartialEq for EntryType<'a>
impl<'a> Eq for EntryType<'a>
impl<'a> StructuralPartialEq for EntryType<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntryType<'a>
impl<'a> RefUnwindSafe for EntryType<'a>
impl<'a> Send for EntryType<'a>
impl<'a> Sync for EntryType<'a>
impl<'a> Unpin for EntryType<'a>
impl<'a> UnsafeUnpin for EntryType<'a>
impl<'a> UnwindSafe for EntryType<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more