Enum ockam::CredentialAttribute[][src]

pub enum CredentialAttribute {
    NotSpecified,
    Empty,
    String(String),
    Numeric(i64),
    Blob([u8; 32]),
}

The attribute data that is signed by

Variants

NotSpecified

The attribute is allowed to not be specified

Empty

The attribute value is specified as empty

String(String)

The attribute is a UTF-8 String

Numeric(i64)

The attribute is numeric

Blob([u8; 32])

The attribute is a sequence of bytes

Implementations

impl CredentialAttribute[src]

pub fn can_be_empty(&self) -> bool[src]

Is self NotSpecified or Empty

pub fn to_signature_message(&self) -> SignatureMessage[src]

convert the attribute data to a cryptographic value that can be signed

Trait Implementations

impl Clone for CredentialAttribute[src]

impl Debug for CredentialAttribute[src]

impl<'de> Deserialize<'de> for CredentialAttribute[src]

impl PartialEq<CredentialAttributeType> for CredentialAttribute[src]

impl Serialize for CredentialAttribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Message for T where
    T: Serialize + DeserializeOwned + Send + 'static, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,