pub struct Package {
pub common: Common,
pub package: PackageInfo,
pub diff_base: Option<PackageInfo>,
pub issues: Vec<Issue>,
pub advisories: Vec<Advisory>,
pub flags: Flags,
pub alternatives: HashSet<PackageId>,
pub comment: String,
// some fields omitted
}Expand description
Body of a Package Review Proof
Fields
common: Commonpackage: PackageInfodiff_base: Option<PackageInfo>issues: Vec<Issue>advisories: Vec<Advisory>flags: Flagsalternatives: HashSet<PackageId>comment: StringImplementations
Get the Review
This forces the user to handle reviews that are empty (everything is set to None) explicitly.
Get the underlying review.
The caller is responsible for handling the case where
review.is_none().
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Package
impl UnwindSafe for Package
Blanket Implementations
Mutably borrows from an owned value. Read more
