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§
Sourcefn source_snapshots(&self) -> &[SourceSnapshot]
fn source_snapshots(&self) -> &[SourceSnapshot]
Exact source snapshots this service answers for.
Sourcefn classifications(
&self,
object: &ObjectId,
) -> Result<Vec<ClassificationAssignment>, ClassificationError>
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".