Trait LinkedDataDocument

Source
pub trait LinkedDataDocument {
    // Required methods
    fn get_contexts(&self) -> Result<Option<String>, Error>;
    fn to_value(&self) -> Result<Value, Error>;
    fn to_dataset_for_signing<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        parent: Option<&'life1 (dyn LinkedDataDocument + Sync)>,
        context_loader: &'life2 mut ContextLoader,
    ) -> Pin<Box<dyn Future<Output = Result<DataSet, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided methods
    fn get_default_proof_purpose(&self) -> Option<ProofPurpose> { ... }
    fn get_issuer(&self) -> Option<&str> { ... }
}

Required Methods§

Source

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

Source

fn to_value(&self) -> Result<Value, Error>

Source

fn to_dataset_for_signing<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, parent: Option<&'life1 (dyn LinkedDataDocument + Sync)>, context_loader: &'life2 mut ContextLoader, ) -> Pin<Box<dyn Future<Output = Result<DataSet, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Implementors§