pub struct HostSelection {
pub schema: String,
pub assertion: Assertion,
pub gate: ContentDigest,
pub baseline: ContentDigest,
pub candidates: Vec<HostCandidateSelection>,
pub ranked: Vec<String>,
pub unranked: Vec<Unranked>,
}Expand description
A host selection (3.7.3): spec 029 3.12.7’s content with the host baseline’s digest and each candidate’s host repeat report and host identities.
Fields§
§schema: String§assertion: Assertion§gate: ContentDigest§baseline: ContentDigestThe host baseline’s record digest.
candidates: Vec<HostCandidateSelection>§ranked: Vec<String>§unranked: Vec<Unranked>Implementations§
Trait Implementations§
Source§impl Clone for HostSelection
impl Clone for HostSelection
Source§impl Debug for HostSelection
impl Debug for HostSelection
Source§impl<'de> Deserialize<'de> for HostSelection
impl<'de> Deserialize<'de> for HostSelection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Document for HostSelection
impl Document for HostSelection
Source§const SCHEMA: &'static str = HOST_SELECTION
const SCHEMA: &'static str = HOST_SELECTION
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = REPLAY_V1
const LIMITS: ParseLimits = REPLAY_V1
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.Source§impl PartialEq for HostSelection
impl PartialEq for HostSelection
Source§impl Serialize for HostSelection
impl Serialize for HostSelection
impl StructuralPartialEq for HostSelection
Auto Trait Implementations§
impl Freeze for HostSelection
impl RefUnwindSafe for HostSelection
impl Send for HostSelection
impl Sync for HostSelection
impl Unpin for HostSelection
impl UnsafeUnpin for HostSelection
impl UnwindSafe for HostSelection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more