Skip to main content

IntoState

Trait IntoState 

Source
pub trait IntoState {
    // Required method
    fn into_state(self) -> State;
}
Expand description

Conversion into a Jev State, letting crate::Client::system_one accept plain strings, structured objects, arrays, or a ready-made State — mirroring the Python SDK’s str | dict | list state parameter.

(A blanket From<&str> for State cannot be provided because both types are foreign to this crate.)

Required Methods§

Source

fn into_state(self) -> State

Convert into the wire State type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoState for &String

Source§

impl IntoState for &str

Source§

impl IntoState for Map<String, Value>

Source§

impl IntoState for String

Source§

impl IntoState for Vec<Value>

Implementors§