[][src]Struct cashweb_protobuf::wrapper::AuthWrapper

pub struct AuthWrapper {
    pub pub_key: Vec<u8>,
    pub signature: Vec<u8>,
    pub scheme: i32,
    pub serialized_payload: Vec<u8>,
}

Fields

pub_key: Vec<u8>

Serialized version of the public key.

signature: Vec<u8>

Signature is the signature of the metadata by public key.

scheme: i32serialized_payload: Vec<u8>

The serialized payload covered by the signature.

Methods

impl AuthWrapper[src]

pub fn scheme(&self) -> SignatureScheme[src]

Returns the enum value of scheme, or the default if the field is set to an invalid enum value.

pub fn set_scheme(&mut self, value: SignatureScheme)[src]

Sets scheme to the provided enum value.

Trait Implementations

impl Clone for AuthWrapper[src]

impl Debug for AuthWrapper[src]

impl Default for AuthWrapper[src]

impl Message for AuthWrapper[src]

impl PartialEq<AuthWrapper> for AuthWrapper[src]

impl StructuralPartialEq for AuthWrapper[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> From<T> for T[src]

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

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.