pub struct StackDef {
pub stack: Stack,
pub secrets: SecretsSpec,
pub integrations: BTreeMap<String, Integration>,
pub services: BTreeMap<String, Service>,
pub legacy_datastores: BTreeSet<String>,
}Expand description
Top level of stackless.toml. Unknown top-level sections are
rejected (an old binary cannot honor a section it does not know).
Fields§
§stack: Stack§secrets: SecretsSpec§integrations: BTreeMap<String, Integration>§services: BTreeMap<String, Service>§legacy_datastores: BTreeSet<String>Names from a stripped legacy [datastores.*] section in an
instance snapshot. Empty for fresh files. Lets
${datastores.*.url} validate and resolve from journaled
provision checkpoints on resume.
Implementations§
Source§impl StackDef
impl StackDef
Sourcepub fn parse(text: &str) -> Result<Self, DefError>
pub fn parse(text: &str) -> Result<Self, DefError>
Parse definition text. Syntax errors and schema mismatches are distinct codes: an agent fixes them differently.
Sourcepub fn parse_snapshot(text: &str) -> Result<Self, DefError>
pub fn parse_snapshot(text: &str) -> Result<Self, DefError>
Parse a definition snapshotted into an instance record.
Older snapshots may still contain [datastores.*]. Strip that
section (fresh files still reject it via Self::parse) but
keep the datastore names and ${datastores.*.url} interpolations
so resume can resolve URLs from journaled provision checkpoints.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StackDef
impl<'de> Deserialize<'de> for StackDef
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 StackDef
impl RefUnwindSafe for StackDef
impl Send for StackDef
impl Sync for StackDef
impl Unpin for StackDef
impl UnsafeUnpin for StackDef
impl UnwindSafe for StackDef
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