pub trait UserAction {
// Required method
fn user_signed(&self) -> UserSigned<'_>;
// Provided methods
fn nonce(&self) -> u64 { ... }
fn action(&self, network: Network) -> Map { ... }
fn wire(&self, network: Network) -> String { ... }
fn typed(&self, network: Network) -> TypedStruct<'_> { ... }
fn digest(&self, network: Network) -> [u8; 32] { ... }
fn wallet_json(&self, network: Network) -> String { ... }
fn body(&self, signature: &Signature, network: Network) -> String { ... }
}Expand description
An action defined by its UserSigned form, from which come the posted
JSON, typed data, digest, wallet JSON and body.
Required Methods§
fn user_signed(&self) -> UserSigned<'_>
Provided Methods§
fn nonce(&self) -> u64
fn action(&self, network: Network) -> Map
fn wire(&self, network: Network) -> String
fn typed(&self, network: Network) -> TypedStruct<'_>
fn digest(&self, network: Network) -> [u8; 32]
fn wallet_json(&self, network: Network) -> String
fn body(&self, signature: &Signature, network: Network) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl UserAction for ApproveAgent
impl UserAction for ApproveBuilderFee
impl UserAction for CDeposit
impl UserAction for CWithdraw
impl UserAction for SendAsset
impl UserAction for SpotOut
impl UserAction for SpotSend
impl UserAction for TokenDelegate
validator is an address in the typed data, posted lowercase.