Skip to content

Commit

Permalink
add docs to BibliographyItem
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Aug 29, 2024
1 parent 5a81b68 commit ff12fde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/csl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,10 +1005,15 @@ pub struct RenderedBibliography {
pub items: Vec<BibliographyItem>,
}

/// A fully rendered bibliography item.
#[derive(Debug, Clone)]
pub struct BibliographyItem {
/// The item's key as specified in the bibliography.
pub key: String,
/// The item's first field. Only available when required by the
/// `second-field-align` CSL property.
pub first_field: Option<ElemChild>,
/// The rendered item.
pub content: ElemChildren,
}

Expand Down

0 comments on commit ff12fde

Please sign in to comment.