pub struct InstallationNotes(/* private fields */);Implementations§
Source§impl InstallationNotes
impl InstallationNotes
pub const MAX_CHAR_LENGTH: usize = 10_000usize
Sourcepub fn new<T: AsRef<str> + Into<String>>(
installation_notes: T,
) -> Result<Self, InstallationNotesError>
pub fn new<T: AsRef<str> + Into<String>>( installation_notes: T, ) -> Result<Self, InstallationNotesError>
Creates a new InstallationNotes from any type that implements AsRef<str> and
Into<CompactString>.
§Errors
Returns an Err if the installation notes are empty or more than 10,000 characters long.
Sourcepub unsafe fn new_unchecked<T: Into<String>>(installation_notes: T) -> Self
pub unsafe fn new_unchecked<T: Into<String>>(installation_notes: T) -> Self
Creates a new InstallationNotes from any type that implements Into<String> without
checking its validity.
§Safety
The installation notes must not be empty or more than 10,000 characters long.
Trait Implementations§
Source§impl AsRef<str> for InstallationNotes
impl AsRef<str> for InstallationNotes
Source§impl Clone for InstallationNotes
impl Clone for InstallationNotes
Source§fn clone(&self) -> InstallationNotes
fn clone(&self) -> InstallationNotes
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 InstallationNotes
impl Debug for InstallationNotes
Source§impl Display for InstallationNotes
impl Display for InstallationNotes
Source§impl FromStr for InstallationNotes
impl FromStr for InstallationNotes
Source§impl Hash for InstallationNotes
impl Hash for InstallationNotes
Source§impl Ord for InstallationNotes
impl Ord for InstallationNotes
Source§fn cmp(&self, other: &InstallationNotes) -> Ordering
fn cmp(&self, other: &InstallationNotes) -> 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 InstallationNotes
impl PartialEq for InstallationNotes
Source§impl PartialOrd for InstallationNotes
impl PartialOrd for InstallationNotes
Source§impl TryFrom<String> for InstallationNotes
impl TryFrom<String> for InstallationNotes
impl Eq for InstallationNotes
impl StructuralPartialEq for InstallationNotes
Auto Trait Implementations§
impl Freeze for InstallationNotes
impl RefUnwindSafe for InstallationNotes
impl Send for InstallationNotes
impl Sync for InstallationNotes
impl Unpin for InstallationNotes
impl UnwindSafe for InstallationNotes
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