pub struct SignedDataMsg {
pub data: Binary,
pub signature: Binary,
pub payload: Option<AuthPayload>,
}Expand description
A wrapper for signed data used for constructing credentials and verifying them
data is base64 encoded JSON string that contains the data to be verified.
When replay feature tag is enabled, must be a JSON object corresponding to MsgDataToSign struct.
Fields§
§data: BinaryBase64 encoded JSON string of replay envelope, serialized actions messages, both of them or none of them
signature: BinarySignature to verify the data
payload: Option<AuthPayload>Optional payload to use customize the verification flow if possible
Trait Implementations§
Source§impl Clone for SignedDataMsg
impl Clone for SignedDataMsg
Source§fn clone(&self) -> SignedDataMsg
fn clone(&self) -> SignedDataMsg
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 SignedDataMsg
impl Debug for SignedDataMsg
Source§impl PartialEq for SignedDataMsg
impl PartialEq for SignedDataMsg
impl StructuralPartialEq for SignedDataMsg
Auto Trait Implementations§
impl Freeze for SignedDataMsg
impl RefUnwindSafe for SignedDataMsg
impl Send for SignedDataMsg
impl Sync for SignedDataMsg
impl Unpin for SignedDataMsg
impl UnwindSafe for SignedDataMsg
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