pub struct SafeHouseSpec {
pub operation_id: String,
pub mission_id: String,
pub title: String,
pub source: String,
pub base: String,
pub branch: String,
pub isolate: bool,
pub state_root: String,
pub reopen: Option<SafeHouseReport>,
pub checkpoint: Option<SafeHouseCheckpoint>,
pub clone: Option<SafeHouseClone>,
pub trial: Option<bool>,
}Expand description
What to open. Crosses as a value.
Fields§
§operation_id: StringThe Operation codename.
mission_id: StringWhat the Mission is called when the safe house opens, its handle: it fills a branch
template’s {id} and names the directory.
title: StringThe Mission brief, used to name the branch or directory.
source: StringWhere the work comes from: a local path today.
base: StringThe revision the safe house starts from; a provider without revisions ignores it.
branch: StringBranch name template; {id}, {slug} and {operation} are filled in.
isolate: boolWhether to cut a separate working directory. false works in source itself.
state_root: StringAI6’s state directory; isolated safe houses are placed beneath it.
reopen: Option<SafeHouseReport>A report from an earlier open: re-attach to that safe house instead of creating one.
checkpoint: Option<SafeHouseCheckpoint>Work an earlier run saved elsewhere: start the new safe house from its commit, on
its branch, instead of from base. A provider without checkpoints ignores it.
clone: Option<SafeHouseClone>Make the working directory a clone of source (a repository URL, user@host:path,
or a local repository, bare or not) on its branch base, instead of a Mission’s working
directory beneath state_root. branch, isolate, reopen and checkpoint are then
ignored; a provider that cannot clone refuses it.
trial: Option<bool>A throwaway trial clone, whose base may be a commit and which may never publish.
Trait Implementations§
Source§impl Clone for SafeHouseSpec
impl Clone for SafeHouseSpec
Source§impl Debug for SafeHouseSpec
impl Debug for SafeHouseSpec
Source§impl<'de> Deserialize<'de> for SafeHouseSpec
impl<'de> Deserialize<'de> for SafeHouseSpec
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>,
Source§impl FromValue for SafeHouseSpec
impl FromValue for SafeHouseSpec
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.