ContentExt

Trait ContentExt 

Source
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§

Source

fn serialize(&self) -> Result<String, Error>

Source

fn sign_by(&self, id: &UnlockedId) -> Result<Proof, Error>

Source

fn ensure_serializes_to_valid_proof(&self) -> Result<(), Error>

Ensure the proof generated from this Content is going to deserialize

Implementors§

Source§

impl<T> ContentExt for T
where T: Content,