pub struct PreflightReport {
pub plan_id: String,
pub token_detected: bool,
pub finishability: Finishability,
pub packages: Vec<PreflightPackage>,
pub timestamp: DateTime<Utc>,
pub dry_run_output: Option<String>,
}Expand description
Report from preflight verification checks.
Before publishing, Shipper runs various preflight checks to catch issues early. This report summarizes the findings.
§Example
ⓘ
use chrono::Utc;
use shipper::types::{PreflightReport, Finishability, PreflightPackage, Registry};
let report = PreflightReport {
plan_id: "abc123".to_string(),
token_detected: true,
finishability: Finishability::Proven,
packages: vec![
PreflightPackage {
name: "my-crate".to_string(),
version: "1.0.0".to_string(),
already_published: false,
is_new_crate: true,
auth_type: Some(shipper::types::AuthType::Token),
ownership_verified: true,
dry_run_passed: true,
},
],
timestamp: Utc::now(),
};§Usage
The preflight report is used to:
- Determine if publishing should proceed
- Provide transparency about potential issues
- Support debugging if publish fails
Fields§
§plan_id: String§token_detected: bool§finishability: Finishability§packages: Vec<PreflightPackage>§timestamp: DateTime<Utc>§dry_run_output: Option<String>Detailed output from workspace-level dry-run verification
Trait Implementations§
Source§impl Clone for PreflightReport
impl Clone for PreflightReport
Source§fn clone(&self) -> PreflightReport
fn clone(&self) -> PreflightReport
Returns a duplicate of the value. Read more
1.0.0 · 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 PreflightReport
impl Debug for PreflightReport
Source§impl<'de> Deserialize<'de> for PreflightReport
impl<'de> Deserialize<'de> for PreflightReport
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
Auto Trait Implementations§
impl Freeze for PreflightReport
impl RefUnwindSafe for PreflightReport
impl Send for PreflightReport
impl Sync for PreflightReport
impl Unpin for PreflightReport
impl UnsafeUnpin for PreflightReport
impl UnwindSafe for PreflightReport
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