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 copy 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<'de> Deserialize<'de> for SignedDataMsg
impl<'de> Deserialize<'de> for SignedDataMsg
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignedDataMsg, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignedDataMsg, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SignedDataMsg
impl JsonSchema for SignedDataMsg
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SignedDataMsg
impl PartialEq for SignedDataMsg
Source§impl Serialize for SignedDataMsg
impl Serialize for SignedDataMsg
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl CustomMsg 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