pub trait Attestation: Send + Sync {
// Required methods
fn layer(&self) -> CaptureLayer;
fn timestamp(&self) -> u64;
fn is_positive(&self) -> bool;
fn magnitude(&self) -> u64;
fn metadata(&self) -> Option<&AttestationMetadata>;
}Expand description
Attestation trait for processing signals from all 22 layers
Required Methods§
Sourcefn layer(&self) -> CaptureLayer
fn layer(&self) -> CaptureLayer
The capture layer this attestation belongs to
Sourcefn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Whether this was a successful/positive event
Sourcefn metadata(&self) -> Option<&AttestationMetadata>
fn metadata(&self) -> Option<&AttestationMetadata>
Optional metadata for specialized scoring