pub struct Context<'a> {
pub repo: &'a Path,
pub feature: &'a str,
pub tasks_path: Option<&'a str>,
pub config_path: &'a str,
pub trust: &'a Trust,
pub format: Option<&'static dyn Adapter>,
}Expand description
Everything that decides an object’s outcome, given the trust input.
Fields§
§repo: &'a PathThe repository.
feature: &'a strThe feature.
tasks_path: Option<&'a str>The tasks file’s path in the repository, when tracked.
config_path: &'a strspeccoder.toml’s path in the repository.
trust: &'a TrustThe verifier’s trust.
format: Option<&'static dyn Adapter>The format reading the task lists, when the caller knows it (read
from git objects); None: the one of the checkout at repo.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
impl<'a> Freeze for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'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