Struct parse_changelog::Release [−][src]
#[non_exhaustive]pub struct Release<'a> {
pub version: &'a str,
pub title: &'a str,
pub notes: &'a str,
}
Expand description
A release note for a version.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: &'a str
The version of this release.
## Version 0.1.0 -- 2020-01-01
^^^^^
This is the same value as the key of the Changelog
type.
title: &'a str
The title of this release.
## Version 0.1.0 -- 2020-01-01
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note that leading and trailing whitespaces have been removed.
notes: &'a str
The descriptions of this release.
Note that leading and trailing newlines have been removed.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Release<'a>
impl<'a> UnwindSafe for Release<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.