Skip to main content

Deployment

Struct Deployment 

Source
pub struct Deployment {
Show 20 fields pub id: u64, pub stack: String, pub trigger: String, pub action: String, pub actor: String, pub status: Status, pub rollback_of: Option<u64>, pub services: Vec<String>, pub reused_secrets: Vec<String>, pub error: Option<String>, pub created_at: u64, pub started_at: Option<u64>, pub finished_at: Option<u64>, pub source: String, pub base_dir: PathBuf, pub env: String, pub domains: BTreeMap<String, Vec<DomainSpec>>, pub events: Vec<LogLine>, pub events_seq: u64, pub failed_attempts: BTreeMap<String, FailedAttempt>,
}
Expand description

One deploy of a compose stack.

Fields§

§id: u64§stack: String§trigger: String

manual (the local CLI) or api (a tool call over MCP or REST).

§action: String

What deployed: deploy (a compose file), rollback, env (an environment change) or domains (a managed domains change).

§actor: String

The caller.

§status: Status§rollback_of: Option<u64>

A rollback to a kept deployment: its id.

§services: Vec<String>

The services it created, changed, scaled or removed.

§reused_secrets: Vec<String>

file:/environment: secrets it deployed with the value an earlier deploy stored, because it was given none.

§error: Option<String>§created_at: u64

Unix seconds, as are started_at and finished_at.

§started_at: Option<u64>§finished_at: Option<u64>§source: String

The compose source it deployed, as stack_export gives it.

§base_dir: PathBuf

Where the source’s relative paths resolved.

§env: String

The stack’s environment at the time (.env text).

§domains: BTreeMap<String, Vec<DomainSpec>>

The managed domains at the time, per service.

§events: Vec<LogLine>

The stack’s events while it ran.

§events_seq: u64

The event feed’s sequence number it has read up to.

§failed_attempts: BTreeMap<String, FailedAttempt>

Per service, the last replica that failed to come up while it rolled out, with its output (each bounded by super::failure::OUTPUT_BYTES).

Implementations§

Source§

impl Deployment

Source

pub fn summary(&self) -> Value

The record for listings: without the source, environment, domains and events.

Source

pub fn log(&self) -> String

The events as text, one line each.

Trait Implementations§

Source§

impl Clone for Deployment

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 Deployment

Source§

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

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

impl<'de> Deserialize<'de> for Deployment

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Deployment

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Deployment

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
Source§

impl StructuralPartialEq for Deployment

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V