pub struct SigningPayload {
pub address: Option<String>,
pub account_identifier: Option<AccountIdentifier>,
pub hex_bytes: String,
pub signature_type: Option<SignatureType>,
}Expand description
SigningPayload : SigningPayload is signed by the client with the keypair associated with an AccountIdentifier using the specified SignatureType. SignatureType can be optionally populated if there is a restriction on the signature scheme that can be used to sign the payload.
Fields§
§address: Option<String>[DEPRECATED by account_identifier in v1.4.4] The network-specific address of the account that should sign the payload.
account_identifier: Option<AccountIdentifier>§hex_bytes: StringHex-encoded string of the payload bytes.
signature_type: Option<SignatureType>Implementations§
Source§impl SigningPayload
impl SigningPayload
Sourcepub fn new(hex_bytes: String) -> SigningPayload
pub fn new(hex_bytes: String) -> SigningPayload
SigningPayload is signed by the client with the keypair associated with an AccountIdentifier using the specified SignatureType. SignatureType can be optionally populated if there is a restriction on the signature scheme that can be used to sign the payload.
Trait Implementations§
Source§impl Clone for SigningPayload
impl Clone for SigningPayload
Source§fn clone(&self) -> SigningPayload
fn clone(&self) -> SigningPayload
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 SigningPayload
impl Debug for SigningPayload
Source§impl Default for SigningPayload
impl Default for SigningPayload
Source§fn default() -> SigningPayload
fn default() -> SigningPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SigningPayload
impl<'de> Deserialize<'de> for SigningPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SigningPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SigningPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SigningPayload
impl PartialEq for SigningPayload
Source§impl Serialize for SigningPayload
impl Serialize for SigningPayload
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 Eq for SigningPayload
impl StructuralPartialEq for SigningPayload
Auto Trait Implementations§
impl Freeze for SigningPayload
impl RefUnwindSafe for SigningPayload
impl Send for SigningPayload
impl Sync for SigningPayload
impl Unpin for SigningPayload
impl UnwindSafe for SigningPayload
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