Struct parse_changelog::Release
source · #[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:
- Leading and trailing whitespaces have been removed.
- This retains links in the title. Use
title_no_link
if you want to use the title with links removed.
notes: &'a str
The descriptions of this release.
Note that leading and trailing newlines have been removed.
Implementations§
Trait Implementations§
source§impl<'a> PartialEq<Release<'a>> for Release<'a>
impl<'a> PartialEq<Release<'a>> for Release<'a>
impl<'a> Eq for Release<'a>
impl<'a> StructuralEq for Release<'a>
impl<'a> StructuralPartialEq for Release<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Release<'a>
impl<'a> Send for Release<'a>
impl<'a> Sync for Release<'a>
impl<'a> Unpin for Release<'a>
impl<'a> UnwindSafe for Release<'a>
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.