Struct lock_keeper::types::database::account::AccountName
source · pub struct AccountName(String);
Expand description
Account name used as human-memorable identifier for a user during OPAQUE.
Tuple Fields§
§0: String
Implementations§
Trait Implementations§
source§impl AsRef<str> for AccountName
impl AsRef<str> for AccountName
source§impl Clone for AccountName
impl Clone for AccountName
source§fn clone(&self) -> AccountName
fn clone(&self) -> AccountName
Returns a copy 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 AccountName
impl Debug for AccountName
source§impl<'de> Deserialize<'de> for AccountName
impl<'de> Deserialize<'de> for AccountName
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for AccountName
impl Display for AccountName
source§impl From<&str> for AccountName
impl From<&str> for AccountName
source§impl From<AccountName> for String
impl From<AccountName> for String
source§fn from(account_name: AccountName) -> Self
fn from(account_name: AccountName) -> Self
Converts to this type from the input type.
source§impl FromStr for AccountName
impl FromStr for AccountName
source§impl PartialEq for AccountName
impl PartialEq for AccountName
source§fn eq(&self, other: &AccountName) -> bool
fn eq(&self, other: &AccountName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccountName
impl Serialize for AccountName
impl Eq for AccountName
impl StructuralPartialEq for AccountName
Auto Trait Implementations§
impl Freeze for AccountName
impl RefUnwindSafe for AccountName
impl Send for AccountName
impl Sync for AccountName
impl Unpin for AccountName
impl UnwindSafe for AccountName
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
source§impl<T> ConvertMessage for Twhere
T: for<'a> Deserialize<'a> + Serialize,
impl<T> ConvertMessage for Twhere
T: for<'a> Deserialize<'a> + Serialize,
fn from_message(value: Message) -> Result<Self, LockKeeperError>
fn to_message(self) -> Result<Message, LockKeeperError>
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request