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