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>where
P: AsRef<Path>,
pub fn read_from_dir<P>(config: &Config, path: P) -> Result<Self>where P: AsRef<Path>,
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>>where
P: AsRef<Path>,
pub fn read_from_dir_opt<P>(config: &Config, path: P) -> Result<Option<Self>>where P: AsRef<Path>,
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.