pub struct ReleaseNotes(/* private fields */);Implementations§
Source§impl ReleaseNotes
impl ReleaseNotes
pub const MAX_CHAR_LENGTH: usize = 10_000usize
Sourcepub fn new<T: AsRef<str>>(release_notes: T) -> Result<Self, ReleaseNotesError>
pub fn new<T: AsRef<str>>(release_notes: T) -> Result<Self, ReleaseNotesError>
Creates a new ReleaseNotes from any type that implements AsRef<str>.
Release notes greater than 10,000 characters will be truncated to the first line where the total number of characters of that line and all previous lines are less than or equal to 10,000 characters.
§Errors
Returns an Err if the release notes are empty.
Sourcepub unsafe fn new_unchecked<T: Into<String>>(release_notes: T) -> Self
pub unsafe fn new_unchecked<T: Into<String>>(release_notes: T) -> Self
Creates a new ReleaseNotes from any type that implements <Into<String>> without checking
whether it is empty.
§Safety
The value must not be empty.
pub const fn as_str(&self) -> &str
Trait Implementations§
Source§impl AsRef<str> for ReleaseNotes
impl AsRef<str> for ReleaseNotes
Source§impl Clone for ReleaseNotes
impl Clone for ReleaseNotes
Source§fn clone(&self) -> ReleaseNotes
fn clone(&self) -> ReleaseNotes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReleaseNotes
impl Debug for ReleaseNotes
Source§impl Default for ReleaseNotes
impl Default for ReleaseNotes
Source§fn default() -> ReleaseNotes
fn default() -> ReleaseNotes
Returns the “default value” for a type. Read more
Source§impl Display for ReleaseNotes
impl Display for ReleaseNotes
Source§impl FromStr for ReleaseNotes
impl FromStr for ReleaseNotes
Source§impl Hash for ReleaseNotes
impl Hash for ReleaseNotes
Source§impl Ord for ReleaseNotes
impl Ord for ReleaseNotes
Source§fn cmp(&self, other: &ReleaseNotes) -> Ordering
fn cmp(&self, other: &ReleaseNotes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReleaseNotes
impl PartialEq for ReleaseNotes
Source§impl PartialOrd for ReleaseNotes
impl PartialOrd for ReleaseNotes
Source§impl TryFrom<String> for ReleaseNotes
impl TryFrom<String> for ReleaseNotes
impl Eq for ReleaseNotes
impl StructuralPartialEq for ReleaseNotes
Auto Trait Implementations§
impl Freeze for ReleaseNotes
impl RefUnwindSafe for ReleaseNotes
impl Send for ReleaseNotes
impl Sync for ReleaseNotes
impl Unpin for ReleaseNotes
impl UnwindSafe for ReleaseNotes
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more