pub struct UnpackedMessage {
pub plain_message: PlainMessage,
pub tap_message: Option<TapMessage>,
}Expand description
Result of unpacking a message containing both the PlainMessage and the parsed TAP message
Fields§
§plain_message: PlainMessageThe unpacked PlainMessage
tap_message: Option<TapMessage>The parsed TAP message (if it could be parsed)
Implementations§
Source§impl UnpackedMessage
impl UnpackedMessage
Sourcepub fn new(plain_message: PlainMessage) -> Self
pub fn new(plain_message: PlainMessage) -> Self
Create a new UnpackedMessage
Sourcepub fn as_typed<T: TapMessageBody>(&self) -> Result<PlainMessage<T>>
pub fn as_typed<T: TapMessageBody>(&self) -> Result<PlainMessage<T>>
Try to get the message as a specific typed message
Sourcepub fn into_typed(self) -> PlainMessage<Value>
pub fn into_typed(self) -> PlainMessage<Value>
Convert to a typed message with untyped body
Trait Implementations§
Source§impl Clone for UnpackedMessage
impl Clone for UnpackedMessage
Source§fn clone(&self) -> UnpackedMessage
fn clone(&self) -> UnpackedMessage
Returns a duplicate 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 UnpackedMessage
impl Debug for UnpackedMessage
Source§impl Unpackable<Jwe, UnpackedMessage> for Jwe
Implement Unpackable for JWE to UnpackedMessage
impl Unpackable<Jwe, UnpackedMessage> for Jwe
Implement Unpackable for JWE to UnpackedMessage
Source§fn unpack<'life0, 'life1, 'async_trait>(
packed_message: &'life0 Jwe,
key_manager: &'life1 (impl 'async_trait + KeyManagerPacking + ?Sized),
options: UnpackOptions,
) -> Pin<Box<dyn Future<Output = Result<UnpackedMessage>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn unpack<'life0, 'life1, 'async_trait>(
packed_message: &'life0 Jwe,
key_manager: &'life1 (impl 'async_trait + KeyManagerPacking + ?Sized),
options: UnpackOptions,
) -> Pin<Box<dyn Future<Output = Result<UnpackedMessage>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Unpack the object from its secure format
Source§impl Unpackable<Jws, UnpackedMessage> for Jws
Implement Unpackable for JWS to UnpackedMessage
impl Unpackable<Jws, UnpackedMessage> for Jws
Implement Unpackable for JWS to UnpackedMessage
Source§fn unpack<'life0, 'life1, 'async_trait>(
packed_message: &'life0 Jws,
key_manager: &'life1 (impl 'async_trait + KeyManagerPacking + ?Sized),
options: UnpackOptions,
) -> Pin<Box<dyn Future<Output = Result<UnpackedMessage>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn unpack<'life0, 'life1, 'async_trait>(
packed_message: &'life0 Jws,
key_manager: &'life1 (impl 'async_trait + KeyManagerPacking + ?Sized),
options: UnpackOptions,
) -> Pin<Box<dyn Future<Output = Result<UnpackedMessage>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Unpack the object from its secure format
Source§impl Unpackable<String, UnpackedMessage> for String
Implement Unpackable for String to UnpackedMessage
impl Unpackable<String, UnpackedMessage> for String
Implement Unpackable for String to UnpackedMessage
Source§fn unpack<'life0, 'life1, 'async_trait>(
packed_message: &'life0 String,
key_manager: &'life1 (impl 'async_trait + KeyManagerPacking + ?Sized),
options: UnpackOptions,
) -> Pin<Box<dyn Future<Output = Result<UnpackedMessage>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
fn unpack<'life0, 'life1, 'async_trait>(
packed_message: &'life0 String,
key_manager: &'life1 (impl 'async_trait + KeyManagerPacking + ?Sized),
options: UnpackOptions,
) -> Pin<Box<dyn Future<Output = Result<UnpackedMessage>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Unpack the object from its secure format
Auto Trait Implementations§
impl Freeze for UnpackedMessage
impl RefUnwindSafe for UnpackedMessage
impl Send for UnpackedMessage
impl Sync for UnpackedMessage
impl Unpin for UnpackedMessage
impl UnsafeUnpin for UnpackedMessage
impl UnwindSafe for UnpackedMessage
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