pub enum ItemType {
Show 45 variants
Article,
ArticleJournal,
ArticleMagazine,
ArticleNewspaper,
Bill,
Book,
Broadcast,
Chapter,
Classic,
Collection,
Dataset,
Document,
Entry,
EntryDictionary,
EntryEncyclopedia,
Event,
Figure,
Graphic,
Hearing,
Interview,
LegalCase,
Legislation,
Manuscript,
Map,
MotionPicture,
MusicalScore,
Pamphlet,
PaperConference,
Patent,
Performance,
Periodical,
PersonalCommunication,
Post,
PostWeblog,
Regulation,
Report,
Review,
ReviewBook,
Software,
Song,
Speech,
Standard,
Thesis,
Treaty,
Webpage,
}Expand description
CSL item types (specification Appendix III).
ItemType::Document is the catch-all used when a source type has no
closer match.
§Examples
use mos_csl::ItemType;
assert_eq!(ItemType::ArticleJournal.as_str(), "article-journal");
assert_eq!(ItemType::from_csl("legal_case"), Some(ItemType::LegalCase));
assert_eq!(ItemType::from_csl("not-a-type"), None);Variants§
Article
ArticleJournal
ArticleMagazine
ArticleNewspaper
Bill
Book
Broadcast
Chapter
Classic
Collection
Dataset
Document
Entry
EntryDictionary
EntryEncyclopedia
Event
Figure
Graphic
Hearing
Interview
LegalCase
Legislation
Manuscript
Map
MotionPicture
MusicalScore
Pamphlet
PaperConference
Patent
Performance
Periodical
PersonalCommunication
Post
PostWeblog
Regulation
Report
Review
ReviewBook
Software
Song
Speech
Standard
Thesis
Treaty
Webpage
Implementations§
Trait Implementations§
Source§impl Ord for ItemType
impl Ord for ItemType
Source§impl PartialOrd for ItemType
impl PartialOrd for ItemType
impl Copy for ItemType
impl Eq for ItemType
impl StructuralPartialEq for ItemType
Auto Trait Implementations§
impl Freeze for ItemType
impl RefUnwindSafe for ItemType
impl Send for ItemType
impl Sync for ItemType
impl Unpin for ItemType
impl UnsafeUnpin for ItemType
impl UnwindSafe for ItemType
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