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