Function monero_epee_bin_serde::to_bytes [−][src]
pub fn to_bytes<T>(object: &T) -> Result<Vec<u8>> where
T: Serialize,
Expand description
Serialize the given object to binary.
This function will prepend the magic header bytes to the serialized object. Additionally, the passed in object MUST be a struct. Monero’s RPC interface assumes that the root element is a struct without tagging it as such.