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