Trait c2pa::AssertionJson
source · pub trait AssertionJson: Serialize + DeserializeOwned + AssertionBase {
// Provided methods
fn to_json_assertion(&self) -> Result<Assertion> { ... }
fn from_json_assertion(assertion: &Assertion) -> Result<Self> { ... }
}
Expand description
Trait to handle default Json encoding/decoding of Assertions
Provided Methods§
fn to_json_assertion(&self) -> Result<Assertion>
fn from_json_assertion(assertion: &Assertion) -> Result<Self>
Object Safety§
This trait is not object safe.