pub struct PreflightPackage {
pub name: String,
pub version: String,
pub already_published: bool,
pub is_new_crate: bool,
pub auth_type: Option<AuthType>,
pub ownership_verified: bool,
pub dry_run_passed: bool,
pub dry_run_output: Option<String>,
}Expand description
Preflight status for a single package.
Contains the results of preflight checks for one crate in the workspace.
§Example
ⓘ
use shipper::types::{PreflightPackage, AuthType};
let pkg = PreflightPackage {
name: "my-crate".to_string(),
version: "1.0.0".to_string(),
already_published: false,
is_new_crate: true,
auth_type: Some(AuthType::Token),
ownership_verified: true,
dry_run_passed: true,
dry_run_output: None,
};Fields§
§name: String§version: String§already_published: bool§is_new_crate: bool§auth_type: Option<AuthType>§ownership_verified: bool§dry_run_passed: bool§dry_run_output: Option<String>Detailed output from package-level dry-run verification
Trait Implementations§
Source§impl Clone for PreflightPackage
impl Clone for PreflightPackage
Source§fn clone(&self) -> PreflightPackage
fn clone(&self) -> PreflightPackage
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 PreflightPackage
impl Debug for PreflightPackage
Source§impl<'de> Deserialize<'de> for PreflightPackage
impl<'de> Deserialize<'de> for PreflightPackage
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 PreflightPackage
impl RefUnwindSafe for PreflightPackage
impl Send for PreflightPackage
impl Sync for PreflightPackage
impl Unpin for PreflightPackage
impl UnsafeUnpin for PreflightPackage
impl UnwindSafe for PreflightPackage
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