Skip to main content

ClassificationService

Trait ClassificationService 

Source
pub trait ClassificationService: Send + Sync {
    // Required methods
    fn source_snapshots(&self) -> &[SourceSnapshot];
    fn classifications(
        &self,
        object: &ObjectId,
    ) -> Result<Vec<ClassificationAssignment>, ClassificationError>;
}
Expand description

Trusted adapter seam listing the classifications an object carries.

Required Methods§

Source

fn source_snapshots(&self) -> &[SourceSnapshot]

Exact source snapshots this service answers for.

Source

fn classifications( &self, object: &ObjectId, ) -> Result<Vec<ClassificationAssignment>, ClassificationError>

Every classification object carries, complete or refused.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§