pub struct InstallPolicy<'a> {
pub now: &'a str,
pub staleness_threshold_days: u32,
pub platform: &'a str,
pub index: Option<IndexPolicy<'a>>,
}Expand description
Policy inputs the caller supplies; time is data, not something the pipeline samples.
Fields§
§now: &'a strRFC 3339 “now” for the staleness verdict.
staleness_threshold_days: u32§platform: &'a strTarget platform (a triple) entries must match. Entries without a platform annotation are platform-independent (REQ-PLATFORM-001).
index: Option<IndexPolicy<'a>>The realm’s line-index obligation (REQ-INDEXAUTH-001). None where the
pin names no realm — there is then no root that could have signed an
index, so there is nothing to check.
Auto Trait Implementations§
impl<'a> Freeze for InstallPolicy<'a>
impl<'a> RefUnwindSafe for InstallPolicy<'a>
impl<'a> Send for InstallPolicy<'a>
impl<'a> Sync for InstallPolicy<'a>
impl<'a> Unpin for InstallPolicy<'a>
impl<'a> UnsafeUnpin for InstallPolicy<'a>
impl<'a> UnwindSafe for InstallPolicy<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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