[−][src]Struct bundled_crypto::token::paseto::token::Data
Hold the pre-protocol data.
Fields
msg: M
The message to be serialized and sent.
The footer to be serialized and sent.
Methods
impl<M: Serialize, F: Serialize> Data<M, F>
[src]
pub fn serialize(self) -> Result<SerializedData, Error>
[src]
Serialize Data
into the SerializedData
form.
Trait Implementations
impl<M: Eq, F: Eq> Eq for Data<M, F>
[src]
impl<M: Clone, F: Clone> Clone for Data<M, F>
[src]
impl<M: PartialEq, F: PartialEq> PartialEq<Data<M, F>> for Data<M, F>
[src]
impl<M: Debug, F: Debug> Debug for Data<M, F>
[src]
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.
fn try_from(tok: SerializedData) -> Result<Self, Self::Error>
[src]
impl<M: Serialize, F: Serialize> TryFrom<Data<M, F>> for SerializedData
[src]
Auto Trait Implementations
impl<M, F> Send for Data<M, F> where
F: Send,
M: Send,
F: Send,
M: Send,
impl<M, F> Unpin for Data<M, F> where
F: Unpin,
M: Unpin,
F: Unpin,
M: Unpin,
impl<M, F> Sync for Data<M, F> where
F: Sync,
M: Sync,
F: Sync,
M: Sync,
impl<M, F> UnwindSafe for Data<M, F> where
F: UnwindSafe,
M: UnwindSafe,
F: UnwindSafe,
M: UnwindSafe,
impl<M, F> RefUnwindSafe for Data<M, F> where
F: RefUnwindSafe,
M: RefUnwindSafe,
F: RefUnwindSafe,
M: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,