pub struct SandboxStaticAnalysis {
pub package_name: String,
pub findings: Vec<SandboxFinding>,
pub limitations: Vec<SandboxAnalysisLimitation>,
}Expand description
What: Hold a text-only PKGBUILD threat-model analysis result.
Inputs:
- Produced by
crate::sandbox::analyze_pkgbuild_securityfrom a package name and unexecuted PKGBUILD text.
Output:
- Structured stable-rule findings and explicit scanner limitations.
Details:
- No aggregate risk score is calculated.
- The report can be serialized for caller-owned review workflows without granting the library authority to execute or build the PKGBUILD.
Fields§
§package_name: StringCaller-provided package name associated with the analyzed text.
findings: Vec<SandboxFinding>Findings in source-line and stable-rule order.
limitations: Vec<SandboxAnalysisLimitation>Explicit scope and correctness limitations of this text-only result.
Trait Implementations§
Source§impl Clone for SandboxStaticAnalysis
impl Clone for SandboxStaticAnalysis
Source§fn clone(&self) -> SandboxStaticAnalysis
fn clone(&self) -> SandboxStaticAnalysis
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 SandboxStaticAnalysis
impl Debug for SandboxStaticAnalysis
Source§impl<'de> Deserialize<'de> for SandboxStaticAnalysis
impl<'de> Deserialize<'de> for SandboxStaticAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SandboxStaticAnalysis
Source§impl PartialEq for SandboxStaticAnalysis
impl PartialEq for SandboxStaticAnalysis
Source§impl Serialize for SandboxStaticAnalysis
impl Serialize for SandboxStaticAnalysis
impl StructuralPartialEq for SandboxStaticAnalysis
Auto Trait Implementations§
impl Freeze for SandboxStaticAnalysis
impl RefUnwindSafe for SandboxStaticAnalysis
impl Send for SandboxStaticAnalysis
impl Sync for SandboxStaticAnalysis
impl Unpin for SandboxStaticAnalysis
impl UnsafeUnpin for SandboxStaticAnalysis
impl UnwindSafe for SandboxStaticAnalysis
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.