pub struct ReplacementEndpoint(/* private fields */);Implementations§
Source§impl ReplacementEndpoint
impl ReplacementEndpoint
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 ReplacementEndpoint
impl AsRef<str> for ReplacementEndpoint
Source§impl Clone for ReplacementEndpoint
impl Clone for ReplacementEndpoint
Source§fn clone(&self) -> ReplacementEndpoint
fn clone(&self) -> ReplacementEndpoint
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 ReplacementEndpoint
impl Debug for ReplacementEndpoint
Source§impl Display for ReplacementEndpoint
impl Display for ReplacementEndpoint
Source§impl FromStr for ReplacementEndpoint
impl FromStr for ReplacementEndpoint
Source§impl Hash for ReplacementEndpoint
impl Hash for ReplacementEndpoint
Source§impl Ord for ReplacementEndpoint
impl Ord for ReplacementEndpoint
Source§fn cmp(&self, other: &ReplacementEndpoint) -> Ordering
fn cmp(&self, other: &ReplacementEndpoint) -> 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 ReplacementEndpoint
impl PartialEq for ReplacementEndpoint
Source§impl PartialOrd for ReplacementEndpoint
impl PartialOrd for ReplacementEndpoint
Source§impl TryFrom<&str> for ReplacementEndpoint
impl TryFrom<&str> for ReplacementEndpoint
impl Eq for ReplacementEndpoint
impl StructuralPartialEq for ReplacementEndpoint
Auto Trait Implementations§
impl Freeze for ReplacementEndpoint
impl RefUnwindSafe for ReplacementEndpoint
impl Send for ReplacementEndpoint
impl Sync for ReplacementEndpoint
impl Unpin for ReplacementEndpoint
impl UnsafeUnpin for ReplacementEndpoint
impl UnwindSafe for ReplacementEndpoint
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