Struct authzen_session::AccountSessionSubject
source · pub struct AccountSessionSubject<AccountId>(pub AccountId);Expand description
wrapper struct for the session account id useful for cases where all you want is the account id and either do not want to or are unable to specify the additional fields included in the jwt claim
Tuple Fields§
§0: AccountIdTrait Implementations§
source§impl<AccountId> AsMut<AccountId> for AccountSessionSubject<AccountId>
impl<AccountId> AsMut<AccountId> for AccountSessionSubject<AccountId>
source§fn as_mut(&mut self) -> &mut AccountId
fn as_mut(&mut self) -> &mut AccountId
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<AccountId> AsRef<AccountId> for AccountSessionSubject<AccountId>
impl<AccountId> AsRef<AccountId> for AccountSessionSubject<AccountId>
source§fn as_ref(&self) -> &AccountId
fn as_ref(&self) -> &AccountId
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<AccountId: Clone> Clone for AccountSessionSubject<AccountId>
impl<AccountId: Clone> Clone for AccountSessionSubject<AccountId>
source§fn clone(&self) -> AccountSessionSubject<AccountId>
fn clone(&self) -> AccountSessionSubject<AccountId>
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<AccountId> Debug for AccountSessionSubject<AccountId>where
AccountId: Debug,
impl<AccountId> Debug for AccountSessionSubject<AccountId>where AccountId: Debug,
source§impl<AccountId> Deref for AccountSessionSubject<AccountId>
impl<AccountId> Deref for AccountSessionSubject<AccountId>
source§impl<AccountId> DerefMut for AccountSessionSubject<AccountId>
impl<AccountId> DerefMut for AccountSessionSubject<AccountId>
source§impl<'de, AccountId> Deserialize<'de> for AccountSessionSubject<AccountId>where
AccountId: Deserialize<'de>,
impl<'de, AccountId> Deserialize<'de> for AccountSessionSubject<AccountId>where AccountId: Deserialize<'de>,
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<AccountId> Display for AccountSessionSubject<AccountId>where
AccountId: Display,
impl<AccountId> Display for AccountSessionSubject<AccountId>where AccountId: Display,
source§impl<AccountId> From<AccountId> for AccountSessionSubject<AccountId>
impl<AccountId> From<AccountId> for AccountSessionSubject<AccountId>
source§fn from(original: AccountId) -> AccountSessionSubject<AccountId>
fn from(original: AccountId) -> AccountSessionSubject<AccountId>
Converts to this type from the input type.
source§impl<AccountId: PartialEq> PartialEq<AccountSessionSubject<AccountId>> for AccountSessionSubject<AccountId>
impl<AccountId: PartialEq> PartialEq<AccountSessionSubject<AccountId>> for AccountSessionSubject<AccountId>
source§fn eq(&self, other: &AccountSessionSubject<AccountId>) -> bool
fn eq(&self, other: &AccountSessionSubject<AccountId>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.