Skip to main content

AttestedProfile

Trait AttestedProfile 

Source
pub trait AttestedProfile: DatasetProfile + Sized {
    const ROLES: &'static [&'static str];

    // Required method
    fn attest(dataset: &PreparedDataset<Self>) -> DatasetAttestation;
}
Expand description

A profile that can be attested. Implemented only by Canonical and Compatibility.

Required Associated Constants§

Source

const ROLES: &'static [&'static str]

Every split role this profile emits. Membership is all that is asked of it, so the order is documentary rather than load-bearing.

Required Methods§

Source

fn attest(dataset: &PreparedDataset<Self>) -> DatasetAttestation

Derive this profile’s attestation from a prepared dataset.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl AttestedProfile for Canonical

Source§

const ROLES: &'static [&'static str]

Source§

impl AttestedProfile for Compatibility

Source§

const ROLES: &'static [&'static str]