Skip to main content

encode_call

Function encode_call 

Source
pub fn encode_call<P: Serialize + ?Sized>(
    id: &str,
    action: &str,
    payload: &P,
) -> Result<String, Error>
Expand description

Serializes [2, id, action, payload].