Trait ProjectAssembler

Source
pub trait ProjectAssembler {
    // Required method
    fn assemble(
        &self,
        documents: impl IntoIterator<Item = Document>,
        links: impl IntoIterator<Item = ProjectLink>,
    ) -> Result<ProjectAssembly, ICDDAssemblyError>;
}
Expand description

Assembles an ICDD project manifest from external container data.

Required Methods§

Source

fn assemble( &self, documents: impl IntoIterator<Item = Document>, links: impl IntoIterator<Item = ProjectLink>, ) -> Result<ProjectAssembly, ICDDAssemblyError>

Validates references without parsing or federating project contents.

§Errors

Returns ICDDAssemblyError::EmptyDocumentId, ICDDAssemblyError::DuplicateDocument, or ICDDAssemblyError::UnknownDocument for an invalid manifest.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§