Skip to main content

CheatcodeBuilder

Trait CheatcodeBuilder 

Source
pub trait CheatcodeBuilder {
    const METHOD: &'static str;

    // Required method
    fn build(self) -> Value;
}
Expand description

Trait implemented by typed cheatcode builders.

METHOD is the target Surfnet RPC method, and Self::build returns the JSON-RPC parameter array for that method.

Required Associated Constants§

Source

const METHOD: &'static str

Required Methods§

Source

fn build(self) -> Value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl CheatcodeBuilder for ResetAccount

Source§

const METHOD: &'static str = "surfnet_resetAccount"

Source§

impl CheatcodeBuilder for SetAccount

Source§

const METHOD: &'static str = "surfnet_setAccount"

Source§

impl CheatcodeBuilder for SetTokenAccount

Source§

const METHOD: &'static str = "surfnet_setTokenAccount"

Source§

impl CheatcodeBuilder for StreamAccount

Source§

const METHOD: &'static str = "surfnet_streamAccount"