pub struct OperationSummary(/* private fields */);Implementations§
Source§impl OperationSummary
impl OperationSummary
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 OperationSummary
impl AsRef<str> for OperationSummary
Source§impl Clone for OperationSummary
impl Clone for OperationSummary
Source§fn clone(&self) -> OperationSummary
fn clone(&self) -> OperationSummary
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 OperationSummary
impl Debug for OperationSummary
Source§impl Display for OperationSummary
impl Display for OperationSummary
Source§impl FromStr for OperationSummary
impl FromStr for OperationSummary
Source§impl Hash for OperationSummary
impl Hash for OperationSummary
Source§impl Ord for OperationSummary
impl Ord for OperationSummary
Source§fn cmp(&self, other: &OperationSummary) -> Ordering
fn cmp(&self, other: &OperationSummary) -> 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 OperationSummary
impl PartialEq for OperationSummary
Source§fn eq(&self, other: &OperationSummary) -> bool
fn eq(&self, other: &OperationSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OperationSummary
impl PartialOrd for OperationSummary
Source§impl TryFrom<&str> for OperationSummary
impl TryFrom<&str> for OperationSummary
impl Eq for OperationSummary
impl StructuralPartialEq for OperationSummary
Auto Trait Implementations§
impl Freeze for OperationSummary
impl RefUnwindSafe for OperationSummary
impl Send for OperationSummary
impl Sync for OperationSummary
impl Unpin for OperationSummary
impl UnsafeUnpin for OperationSummary
impl UnwindSafe for OperationSummary
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