pub struct SecretName(/* private fields */);Implementations§
Source§impl SecretName
impl SecretName
Sourcepub fn new(input: impl AsRef<str>) -> Result<SecretName, SecretTextError>
pub fn new(input: impl AsRef<str>) -> Result<SecretName, SecretTextError>
Creates non-empty secret text metadata.
Trait Implementations§
Source§impl Clone for SecretName
impl Clone for SecretName
Source§fn clone(&self) -> SecretName
fn clone(&self) -> SecretName
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 SecretName
impl Debug for SecretName
Source§impl Display for SecretName
impl Display for SecretName
Source§impl FromStr for SecretName
impl FromStr for SecretName
Source§type Err = SecretTextError
type Err = SecretTextError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<SecretName, <SecretName as FromStr>::Err>
fn from_str(input: &str) -> Result<SecretName, <SecretName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SecretName
impl Hash for SecretName
Source§impl Ord for SecretName
impl Ord for SecretName
Source§fn cmp(&self, other: &SecretName) -> Ordering
fn cmp(&self, other: &SecretName) -> 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 SecretName
impl PartialEq for SecretName
Source§fn eq(&self, other: &SecretName) -> bool
fn eq(&self, other: &SecretName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SecretName
impl PartialOrd for SecretName
Source§impl TryFrom<&str> for SecretName
impl TryFrom<&str> for SecretName
Source§type Error = SecretTextError
type Error = SecretTextError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<SecretName, <SecretName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<SecretName, <SecretName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for SecretName
impl StructuralPartialEq for SecretName
Auto Trait Implementations§
impl Freeze for SecretName
impl RefUnwindSafe for SecretName
impl Send for SecretName
impl Sync for SecretName
impl Unpin for SecretName
impl UnsafeUnpin for SecretName
impl UnwindSafe for SecretName
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