pub struct ReleaseNote { /* private fields */ }Expand description
What one version brought, for a ReleaseNotes.
Implementations§
Source§impl ReleaseNote
impl ReleaseNote
Sourcepub fn new(version: impl Into<String>, title: impl Into<String>) -> ReleaseNote
pub fn new(version: impl Into<String>, title: impl Into<String>) -> ReleaseNote
A note on version, as the app words it, with the title of the release.
Sourcepub fn date(self, date: impl Into<String>) -> ReleaseNote
pub fn date(self, date: impl Into<String>) -> ReleaseNote
The release date, already formatted.
Sourcepub fn changes(
self,
changes: impl IntoIterator<Item = impl Into<String>>,
) -> ReleaseNote
pub fn changes( self, changes: impl IntoIterator<Item = impl Into<String>>, ) -> ReleaseNote
The list of what changed.
Sourcepub fn section(
self,
heading: impl Into<String>,
text: impl Into<String>,
) -> ReleaseNote
pub fn section( self, heading: impl Into<String>, text: impl Into<String>, ) -> ReleaseNote
Adds a block of text with a heading, after what is already there.
Sourcepub fn code(self, code: impl Into<String>) -> ReleaseNote
pub fn code(self, code: impl Into<String>) -> ReleaseNote
Adds a CodeBlock, after what is already there.
Sourcepub fn links<F>(
self,
heading: impl Into<String>,
links: impl IntoIterator<Item = (impl Into<String>, F)>,
) -> ReleaseNotewhere
F: Fn() + 'static,
pub fn links<F>(
self,
heading: impl Into<String>,
links: impl IntoIterator<Item = (impl Into<String>, F)>,
) -> ReleaseNotewhere
F: Fn() + 'static,
Adds a heading over links, after what is already there: each a label and what clicking it does, such as opening the issue a change came from.
Trait Implementations§
Source§impl Clone for ReleaseNote
impl Clone for ReleaseNote
Source§fn clone(&self) -> ReleaseNote
fn clone(&self) -> ReleaseNote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ReleaseNote
impl !Send for ReleaseNote
impl !Sync for ReleaseNote
impl !UnwindSafe for ReleaseNote
impl Freeze for ReleaseNote
impl Unpin for ReleaseNote
impl UnsafeUnpin for ReleaseNote
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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