pub struct MigrationNote(/* private fields */);Implementations§
Source§impl MigrationNote
impl MigrationNote
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for MigrationNote
impl AsRef<str> for MigrationNote
Source§impl Clone for MigrationNote
impl Clone for MigrationNote
Source§fn clone(&self) -> MigrationNote
fn clone(&self) -> MigrationNote
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 moreSource§impl Debug for MigrationNote
impl Debug for MigrationNote
Source§impl Display for MigrationNote
impl Display for MigrationNote
Source§impl FromStr for MigrationNote
impl FromStr for MigrationNote
Source§impl Hash for MigrationNote
impl Hash for MigrationNote
Source§impl Ord for MigrationNote
impl Ord for MigrationNote
Source§fn cmp(&self, other: &MigrationNote) -> Ordering
fn cmp(&self, other: &MigrationNote) -> Ordering
1.21.0 (const: unstable) · 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 MigrationNote
impl PartialEq for MigrationNote
Source§fn eq(&self, other: &MigrationNote) -> bool
fn eq(&self, other: &MigrationNote) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MigrationNote
impl PartialOrd for MigrationNote
Source§impl TryFrom<&str> for MigrationNote
impl TryFrom<&str> for MigrationNote
impl Eq for MigrationNote
impl StructuralPartialEq for MigrationNote
Auto Trait Implementations§
impl Freeze for MigrationNote
impl RefUnwindSafe for MigrationNote
impl Send for MigrationNote
impl Sync for MigrationNote
impl Unpin for MigrationNote
impl UnsafeUnpin for MigrationNote
impl UnwindSafe for MigrationNote
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