Trait ToJson

Source
pub trait ToJson {
    // Required method
    fn to_json(&self) -> Result<Value>;

    // Provided methods
    fn to_json_string(&self) -> Result<String> { ... }
    fn to_json_compact(&self) -> Result<String> { ... }
}
Expand description

Convert SWIFT message to JSON

Required Methods§

Source

fn to_json(&self) -> Result<Value>

Convert to JSON Value

Provided Methods§

Source

fn to_json_string(&self) -> Result<String>

Convert to JSON string

Source

fn to_json_compact(&self) -> Result<String>

Convert to compact JSON string

Implementors§