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 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.