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§
Provided Methods§
Sourcefn to_json_string(&self) -> Result<String>
fn to_json_string(&self) -> Result<String>
Convert to JSON string
Sourcefn to_json_compact(&self) -> Result<String>
fn to_json_compact(&self) -> Result<String>
Convert to compact JSON string