Struct concordium_base::common::types::CredentialIndex
source · pub struct CredentialIndex {
pub index: u8,
}
Expand description
Index of the credential that is to be used.
Fields§
§index: u8
Trait Implementations§
source§impl Clone for CredentialIndex
impl Clone for CredentialIndex
source§fn clone(&self) -> CredentialIndex
fn clone(&self) -> CredentialIndex
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 CredentialIndex
impl Debug for CredentialIndex
source§impl Deserial for CredentialIndex
impl Deserial for CredentialIndex
fn deserial<GenericReaderType: ReadBytesExt>( source: &mut GenericReaderType ) -> ParseResult<Self>
source§impl<'de> Deserialize<'de> for CredentialIndex
impl<'de> Deserialize<'de> for CredentialIndex
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 CredentialIndex
impl Display for CredentialIndex
source§impl From<CredentialIndex> for u8
impl From<CredentialIndex> for u8
source§fn from(original: CredentialIndex) -> Self
fn from(original: CredentialIndex) -> Self
Converts to this type from the input type.
source§impl From<u8> for CredentialIndex
impl From<u8> for CredentialIndex
source§fn from(original: u8) -> CredentialIndex
fn from(original: u8) -> CredentialIndex
Converts to this type from the input type.
source§impl FromStr for CredentialIndex
impl FromStr for CredentialIndex
source§impl Ord for CredentialIndex
impl Ord for CredentialIndex
source§fn cmp(&self, other: &CredentialIndex) -> Ordering
fn cmp(&self, other: &CredentialIndex) -> Ordering
1.21.0 · 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<CredentialIndex> for CredentialIndex
impl PartialEq<CredentialIndex> for CredentialIndex
source§fn eq(&self, other: &CredentialIndex) -> bool
fn eq(&self, other: &CredentialIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CredentialIndex> for CredentialIndex
impl PartialOrd<CredentialIndex> for CredentialIndex
source§fn partial_cmp(&self, other: &CredentialIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &CredentialIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serial for CredentialIndex
impl Serial for CredentialIndex
fn serial<GenericBufferType: Buffer>(&self, out: &mut GenericBufferType)
source§impl Serialize for CredentialIndex
impl Serialize for CredentialIndex
impl Copy for CredentialIndex
impl Eq for CredentialIndex
impl StructuralEq for CredentialIndex
impl StructuralPartialEq for CredentialIndex
Auto Trait Implementations§
impl RefUnwindSafe for CredentialIndex
impl Send for CredentialIndex
impl Sync for CredentialIndex
impl Unpin for CredentialIndex
impl UnwindSafe for CredentialIndex
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