pub struct ProjectFacts<'a> {
pub cert: Option<&'a ProjectCert>,
pub user_pubkey: &'a [u8; 32],
pub revocations: &'a RevocationView,
pub manifest_id: &'a str,
pub root: &'a Path,
pub policy_hash: &'a str,
}Expand description
Everything prepare_project checks a project against.
Fields§
§cert: Option<&'a ProjectCert>The certificate in force for the project. None before its first
registration: the child registers its key on first boot, so the
workload carries key_id = "unregistered" and serial 0.
user_pubkey: &'a [u8; 32]The user public key the certificate must chain to.
revocations: &'a RevocationViewThe revocation view over the user chain.
manifest_id: &'a strThe project id the manifest registered.
root: &'a PathThe manifest’s canonical root.
policy_hash: &'a strHex hash of the policy in force (parent_hash), recorded on the
workload; may be empty before the first policy export.
Auto Trait Implementations§
impl<'a> Freeze for ProjectFacts<'a>
impl<'a> RefUnwindSafe for ProjectFacts<'a>
impl<'a> Send for ProjectFacts<'a>
impl<'a> Sync for ProjectFacts<'a>
impl<'a> Unpin for ProjectFacts<'a>
impl<'a> UnsafeUnpin for ProjectFacts<'a>
impl<'a> UnwindSafe for ProjectFacts<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more