pub trait ContentExt: Content {
// Provided methods
fn serialize(&self) -> Result<String, Error> { ... }
fn sign_by(&self, id: &UnlockedId) -> Result<Proof, Error> { ... }
fn ensure_serializes_to_valid_proof(&self) -> Result<(), Error> { ... }
}Provided Methods§
fn serialize(&self) -> Result<String, Error>
fn sign_by(&self, id: &UnlockedId) -> Result<Proof, Error>
sourcefn ensure_serializes_to_valid_proof(&self) -> Result<(), Error>
fn ensure_serializes_to_valid_proof(&self) -> Result<(), Error>
Ensure the proof generated from this Content is going to deserialize