pub struct Section {
pub version: Version,
pub released: Option<DateTime<Utc>>,
pub introduction: Option<String>,
pub references: BTreeMap<String, String>,
pub changes: BTreeMap<String, Vec<Entry>>,
}Expand description
One section of the CHANGELOG: the changes of a single version.
A section with no released moment is the pending, not-yet-published one.
changes maps a bucket name to its entries, in the order they render.
Fields§
§version: VersionThe version this section documents, as a (major, minor, patch)
triple in the RON.
released: Option<DateTime<Utc>>The moment this version was published, or None while pending.
introduction: Option<String>An optional prose lead for this version.
references: BTreeMap<String, String>Link labels used by this section, mapped to their targets.
changes: BTreeMap<String, Vec<Entry>>The entries of this section, keyed by bucket.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.