pub struct Deployment {Show 19 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,
}Expand description
One deploy of a compose stack.
Fields§
§id: u64§stack: String§trigger: Stringmanual (the local CLI) or api (a tool call over MCP or REST).
action: StringWhat deployed: deploy (a compose file), rollback, env (an
environment change) or domains (a managed domains change).
actor: StringThe 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: u64Unix seconds, as are started_at and finished_at.
started_at: Option<u64>§finished_at: Option<u64>§source: StringThe compose source it deployed, as stack_export gives it.
base_dir: PathBufWhere the source’s relative paths resolved.
env: StringThe 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: u64The event feed’s sequence number it has read up to.
Implementations§
Trait Implementations§
Source§impl Clone for Deployment
impl Clone for Deployment
Source§impl Debug for Deployment
impl Debug for Deployment
Source§impl<'de> Deserialize<'de> for Deployment
impl<'de> Deserialize<'de> for Deployment
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
Source§impl PartialEq for Deployment
impl PartialEq for Deployment
Source§impl Serialize for Deployment
impl Serialize for Deployment
impl StructuralPartialEq for Deployment
Auto Trait Implementations§
impl Freeze for Deployment
impl RefUnwindSafe for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnsafeUnpin for Deployment
impl UnwindSafe for Deployment
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