pub struct PinnedProgramReport {
pub artifact: String,
pub program: String,
pub platform: String,
pub source: String,
pub path: Option<String>,
pub url: Option<String>,
pub sha256: Option<String>,
pub reason: Option<String>,
}Expand description
One element of ScopeReport::pinned_programs: which copy of a program a tool pins a
download of the session runs. path is absent for missing, url and sha256 are present
only for pinned, and reason only for missing.
Fields§
§artifact: StringThe artifact as the capsule’s manifest names it, scope included.
program: StringThe program key, as capabilities.shell.allow names it.
platform: StringThis host’s platform, as the download is pinned for it (linux-x86_64).
source: Stringpinned (the program store’s copy), host (a program of that name on PATH) or
missing.
path: Option<String>The file that runs, canonical.
url: Option<String>§sha256: Option<String>§reason: Option<String>Implementations§
Source§impl PinnedProgramReport
impl PinnedProgramReport
Sourcepub fn render_line(&self) -> String
pub fn render_line(&self) -> String
The line --explain-scope prints under pinned programs::
<artifact> (<program>): pinned <path> (sha256 <sha>, from <url>),
<artifact> (<program>): host <path> or <artifact> (<program>): missing (<reason>).
Trait Implementations§
Source§impl Clone for PinnedProgramReport
impl Clone for PinnedProgramReport
Source§impl Debug for PinnedProgramReport
impl Debug for PinnedProgramReport
impl Eq for PinnedProgramReport
Source§impl From<&ResolvedPinnedProgram> for PinnedProgramReport
impl From<&ResolvedPinnedProgram> for PinnedProgramReport
Source§fn from(resolved: &ResolvedPinnedProgram) -> Self
fn from(resolved: &ResolvedPinnedProgram) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PinnedProgramReport
impl PartialEq for PinnedProgramReport
Source§impl Serialize for PinnedProgramReport
impl Serialize for PinnedProgramReport
impl StructuralPartialEq for PinnedProgramReport
Auto Trait Implementations§
impl Forget for PinnedProgramReport
impl Freeze for PinnedProgramReport
impl Move for PinnedProgramReport
impl RefUnwindSafe for PinnedProgramReport
impl Send for PinnedProgramReport
impl Sync for PinnedProgramReport
impl Unpin for PinnedProgramReport
impl UnsafeUnpin for PinnedProgramReport
impl UnwindSafe for PinnedProgramReport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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