[][src]Struct bundled_crypto::token::paseto::token::SerializedData

pub struct SerializedData {
    pub msg: Vec<u8>,
    pub footer: Option<Vec<u8>>,
}

Represents the Data struct, but serialized.

Fields

msg: Vec<u8>

The message to be sent.

footer: Option<Vec<u8>>

The footer to be sent.

Methods

impl SerializedData[src]

pub fn deserialize<M: DeserializeOwned, F: DeserializeOwned>(
    self
) -> Result<Data<M, F>, DeserializeError>
[src]

Deserialize the SerializedData into the Data struct.

Trait Implementations

impl<M: DeserializeOwned, F: DeserializeOwned> TryFrom<SerializedData> for Data<M, F>[src]

type Error = DeserializeError

The type returned in the event of a conversion error.

impl<M: Serialize, F: Serialize> TryFrom<Data<M, F>> for SerializedData[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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