pub struct ChangeSet {
pub maybe_summary: Option<String>,
pub sections: Vec<ChangeSetSection>,
}
Expand description
A set of changes, either associated with a release or not.
Fields§
§maybe_summary: Option<String>
An optional high-level summary of the set of changes.
sections: Vec<ChangeSetSection>
The sections making up the change set.
Implementations§
Source§impl ChangeSet
impl ChangeSet
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this change set has no summary and no entries associated with it.
Sourcepub fn are_sections_empty(&self) -> bool
pub fn are_sections_empty(&self) -> bool
Returns whether or not all the sections are empty.
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 from the given directory.
Sourcepub fn read_from_dir_opt<P>(config: &Config, path: P) -> Result<Option<Self>>
pub fn read_from_dir_opt<P>(config: &Config, path: P) -> Result<Option<Self>>
Attempt to read a single change set from the given directory, like
ChangeSet::read_from_dir
, but return Option::None
if the
directory does not exist.
pub fn render(&self, config: &Config) -> String
Trait Implementations§
impl Eq for ChangeSet
impl StructuralPartialEq for ChangeSet
Auto Trait Implementations§
impl Freeze for ChangeSet
impl RefUnwindSafe for ChangeSet
impl Send for ChangeSet
impl Sync for ChangeSet
impl Unpin for ChangeSet
impl UnwindSafe for ChangeSet
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,
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.