Skip to main content

XsdBridge

Trait XsdBridge 

Source
pub trait XsdBridge: Send + Sync {
    // Required methods
    fn register<'life0, 'async_trait>(
        &'life0 self,
        xsd_bytes: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<SchemaId, ValidatorError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        schema_id: &'life1 str,
        doc_bytes: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<(), ValidatorError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn register<'life0, 'async_trait>( &'life0 self, xsd_bytes: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<SchemaId, ValidatorError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn validate<'life0, 'life1, 'async_trait>( &'life0 self, schema_id: &'life1 str, doc_bytes: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(), ValidatorError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§