pub struct AnalysisRequest {
pub analyzer: String,
pub worktree: Worktree,
pub network: NetworkPolicy,
pub consent: Consent,
pub source: SourceIdentity,
}Expand description
What a caller asks a backend to do.
The same request shape serves every backend, which is the whole point of the seam: a caller that ingests a CI report today and runs a sandboxed analyzer tomorrow builds the identical value.
Fields§
§analyzer: StringWhich analyzer to run.
worktree: WorktreeThe read-only worktree to analyze.
network: NetworkPolicyEgress policy for the run.
consent: ConsentExplicit user consent.
source: SourceIdentityThe source identity the run is against (commit / tree / lockfile blob), as far as the caller knows it. A backend may fill in more.
Trait Implementations§
Source§impl Clone for AnalysisRequest
impl Clone for AnalysisRequest
Source§fn clone(&self) -> AnalysisRequest
fn clone(&self) -> AnalysisRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalysisRequest
impl Debug for AnalysisRequest
impl Eq for AnalysisRequest
Source§impl PartialEq for AnalysisRequest
impl PartialEq for AnalysisRequest
impl StructuralPartialEq for AnalysisRequest
Auto Trait Implementations§
impl Freeze for AnalysisRequest
impl RefUnwindSafe for AnalysisRequest
impl Send for AnalysisRequest
impl Sync for AnalysisRequest
impl Unpin for AnalysisRequest
impl UnsafeUnpin for AnalysisRequest
impl UnwindSafe for AnalysisRequest
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.