Skip to main content

UserAction

Trait UserAction 

Source
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§

Source

fn user_signed(&self) -> UserSigned<'_>

Provided Methods§

Source

fn nonce(&self) -> u64

Source

fn action(&self, network: Network) -> Map

Source

fn wire(&self, network: Network) -> String

Source

fn typed(&self, network: Network) -> TypedStruct<'_>

Source

fn digest(&self, network: Network) -> [u8; 32]

Source

fn wallet_json(&self, network: Network) -> String

Source

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§