pub struct PreflightSummaryData {Show 16 fields
pub packages: Vec<PreflightPackageSummary>,
pub package_count: usize,
pub aur_count: usize,
pub download_bytes: u64,
pub install_delta_bytes: i64,
pub risk_score: u8,
pub risk_level: RiskLevel,
pub risk_reasons: Vec<String>,
pub major_bump_packages: Vec<String>,
pub core_system_updates: Vec<String>,
pub pacnew_candidates: usize,
pub pacsave_candidates: usize,
pub config_warning_packages: Vec<String>,
pub service_restart_units: Vec<String>,
pub summary_warnings: Vec<String>,
pub summary_notes: Vec<String>,
}Expand description
What: Comprehensive dataset backing the Preflight Summary tab.
Inputs:
- Populated by summary resolution logic once package metadata, sizes, and risk heuristics are computed.
Output:
- Delivers structured information for tab body rendering, risk callouts, and contextual notes.
Details:
summary_notesaggregates high-impact bullet points (e.g., kernel updates, pacnew predictions).
Fields§
§packages: Vec<PreflightPackageSummary>Per-package summaries for the operation.
package_count: usizeTotal number of packages represented in packages.
aur_count: usizeNumber of AUR-sourced packages participating in the plan.
download_bytes: u64Total download size for the plan.
install_delta_bytes: i64Net install size delta for the plan (signed).
risk_score: u8Aggregate risk score (0-255).
risk_level: RiskLevelAggregate risk level (Low/Medium/High).
risk_reasons: Vec<String>Reasons contributing to the risk score.
major_bump_packages: Vec<String>Packages classified as major version bumps (e.g., 1.x -> 2.0).
core_system_updates: Vec<String>Core/system packages flagged as high impact (kernel, glibc, etc.).
pacnew_candidates: usizeTotal predicted .pacnew files across all packages.
pacsave_candidates: usizeTotal predicted .pacsave files across all packages.
config_warning_packages: Vec<String>Packages with configuration merge warnings (.pacnew expected).
service_restart_units: Vec<String>Services likely requiring restart after the transaction.
summary_warnings: Vec<String>Free-form warnings assembled by the summary planner to highlight notable risks.
summary_notes: Vec<String>Notes summarizing key items in the plan.
Trait Implementations§
Source§impl Clone for PreflightSummaryData
impl Clone for PreflightSummaryData
Source§fn clone(&self) -> PreflightSummaryData
fn clone(&self) -> PreflightSummaryData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreflightSummaryData
impl Debug for PreflightSummaryData
Source§impl<'de> Deserialize<'de> for PreflightSummaryData
impl<'de> Deserialize<'de> for PreflightSummaryData
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>,
Auto Trait Implementations§
impl Freeze for PreflightSummaryData
impl RefUnwindSafe for PreflightSummaryData
impl Send for PreflightSummaryData
impl Sync for PreflightSummaryData
impl Unpin for PreflightSummaryData
impl UnsafeUnpin for PreflightSummaryData
impl UnwindSafe for PreflightSummaryData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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