Struct unclog::ChangeSetSection
source · pub struct ChangeSetSection {
pub id: String,
pub title: String,
pub entries: Vec<Entry>,
pub component_sections: Vec<ComponentSection>,
}
Expand description
A single section in a set of changes.
For example, the “FEATURES” or “BREAKING CHANGES” section.
Fields§
§id: String
Original ID of this change set section (the folder name).
title: String
A short, descriptive title for this section (e.g. “BREAKING CHANGES”).
entries: Vec<Entry>
General entries in the change set section.
component_sections: Vec<ComponentSection>
Entries associated with a specific component/package/submodule.
Implementations§
source§impl ChangeSetSection
impl ChangeSetSection
sourcepub fn read_from_dir<P>(config: &Config, path: P) -> Result<Self>
pub fn read_from_dir<P>(config: &Config, path: P) -> Result<Self>
Attempt to read a single change set section from the given directory.
Trait Implementations§
source§impl Clone for ChangeSetSection
impl Clone for ChangeSetSection
source§fn clone(&self) -> ChangeSetSection
fn clone(&self) -> ChangeSetSection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChangeSetSection
impl Debug for ChangeSetSection
source§impl Hash for ChangeSetSection
impl Hash for ChangeSetSection
source§impl PartialEq for ChangeSetSection
impl PartialEq for ChangeSetSection
source§fn eq(&self, other: &ChangeSetSection) -> bool
fn eq(&self, other: &ChangeSetSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ChangeSetSection
impl StructuralPartialEq for ChangeSetSection
Auto Trait Implementations§
impl RefUnwindSafe for ChangeSetSection
impl Send for ChangeSetSection
impl Sync for ChangeSetSection
impl Unpin for ChangeSetSection
impl UnwindSafe for ChangeSetSection
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.