Skip to main content

DeployProjectsResult

Struct DeployProjectsResult 

Source
pub struct DeployProjectsResult {
Show 31 fields pub env: String, pub gateway: String, pub project: String, pub release: String, pub check: bool, pub action: ProjectAction, pub would_change: bool, pub artifact_sha256: String, pub live_sha256: Option<String>, pub members: MemberDelta, pub removed: Vec<String>, pub removed_count: usize, pub excluded: Vec<String>, pub excluded_count: usize, pub unmanaged: Vec<String>, pub unmanaged_count: usize, pub parent: Option<String>, pub previous_release: Option<String>, pub recorded_sha256: Option<String>, pub live_matches_last_deploy: Option<bool>, pub allow_downgrade: bool, pub allow_first_change: Option<String>, pub warnings: Vec<String>, pub run_id: Option<String>, pub run_dir: Option<String>, pub record_written: bool, pub restore_command: Option<String>, pub children: Vec<ChildReport>, pub outcome: ProjectOutcome, pub ok: bool, pub slug: Option<String>,
}
Expand description

ign deploy projects output model.

Fields§

§env: String

The --env value.

§gateway: String

The target’s gateway name.

§project: String

The gateway project name from deploy/project.yaml.

§release: String

The release tag, as given.

§check: bool

True for --check: no write was made.

§action: ProjectAction

What a deploy would do.

§would_change: bool

Whether the gateway would change.

§artifact_sha256: String

Canonical sha256 of the artifact built from the checkout.

§live_sha256: Option<String>

Canonical sha256 of the live project’s export; null when absent.

§members: MemberDelta

How the artifact’s members differ from the live project’s.

§removed: Vec<String>

Live members an overwrite would delete, byte-sorted, capped.

§removed_count: usize

Full count of removed members.

§excluded: Vec<String>

Repo-relative paths left out of the artifact (root entries outside the allowlist, the built-in denylist, .ignexclude, files no resource.json lists), byte-sorted, capped. A directory carries a trailing /. Paths only, never file content.

§excluded_count: usize

Full count of excluded paths.

§unmanaged: Vec<String>

Other projects on the gateway, by name, byte-sorted, capped. They are never read, changed or deleted.

§unmanaged_count: usize

Full count of other projects.

§parent: Option<String>

The parent named in the repo’s project.json; null for a root project. Checked with reads only (K6 a, D-05).

§previous_release: Option<String>

The release the gateway last received from this tool, as recorded; null when there is no release record (K13, D-03).

§recorded_sha256: Option<String>

The artifact_sha256 the release record holds: the canonical digest of what this tool last deployed; null when there is no record.

§live_matches_last_deploy: Option<bool>

Whether the live project still equals recorded_sha256; null without a record or without a live project. False is a warning (K13).

§allow_downgrade: bool

Whether --allow-downgrade was given.

§allow_first_change: Option<String>

The --allow-first-change reason, as given; null without the flag.

§warnings: Vec<String>

Warnings in pipeline order.

§run_id: Option<String>

The run’s id; null for a check and for a project left alone.

§run_dir: Option<String>

The run directory, relative to the repo (.ign/deploy/<gateway>/<id>); null when no run directory was created.

§record_written: bool

Whether the release record was written on the gateway host.

§restore_command: Option<String>

The command that puts the saved pre-image back: set only on the unverified verdict of an overwrite import, where a pre-image exists (K11). Nothing runs it; the operator does.

§children: Vec<ChildReport>

The projects that inherit from this one, checked against the release record of their own last deploy (D-06, K7); byte-sorted by name. Empty when no sweep ran: a check, a project with no children, and the created, recorded and skipped outcomes. Reported, never acted on.

§outcome: ProjectOutcome

How the run ended.

§ok: bool

False only for a verdict exit (never in a check).

§slug: Option<String>

The verdict slug when ok is false; otherwise null.

Implementations§

Source§

impl DeployProjectsResult

Source

pub fn failure_exit_code(&self) -> Option<u8>

The exit code the process ends with after the envelope: Some(6) for an unverified import (V6), None for every other outcome. The envelope is a success envelope; the code is the verdict.

Trait Implementations§

Source§

impl Clone for DeployProjectsResult

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DeployProjectsResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for DeployProjectsResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more