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