Skip to main content

Attestation

Trait Attestation 

Source
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§

Source

fn layer(&self) -> CaptureLayer

The capture layer this attestation belongs to

Source

fn timestamp(&self) -> u64

Timestamp of the event (Unix seconds)

Source

fn is_positive(&self) -> bool

Whether this was a successful/positive event

Source

fn magnitude(&self) -> u64

Magnitude of the event (e.g., CRED amount, data records, etc.)

Source

fn metadata(&self) -> Option<&AttestationMetadata>

Optional metadata for specialized scoring

Implementors§