pub struct ApiKeyId(/* private fields */);Implementations§
Source§impl ApiKeyId
impl ApiKeyId
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 Ord for ApiKeyId
impl Ord for ApiKeyId
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 PartialOrd for ApiKeyId
impl PartialOrd for ApiKeyId
impl Eq for ApiKeyId
impl StructuralPartialEq for ApiKeyId
Auto Trait Implementations§
impl Freeze for ApiKeyId
impl RefUnwindSafe for ApiKeyId
impl Send for ApiKeyId
impl Sync for ApiKeyId
impl Unpin for ApiKeyId
impl UnsafeUnpin for ApiKeyId
impl UnwindSafe for ApiKeyId
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