pub struct StorageSpec {
pub kind: StorageKind,
pub path: String,
pub description: Option<String>,
pub hint: Option<String>,
pub files: Vec<StorageFileHint>,
}Expand description
A named storage declaration — a place the workflow keeps structured files.
Storage complements vars (scalar state) and resources (read-only
reference files): it is the designated spot for writable working data
that steps build up across a run. The initial backend is filesystem; the
shape is intentionally open to future sqlite/remote backends.
Fields§
§kind: StorageKindWhether this entry is a folder (default) or a single file.
path: StringPath to the storage item. Relative paths resolve against <cwd>/.zig/;
absolute paths are used verbatim.
description: Option<String>One-line description shown to the agent alongside the path.
hint: Option<String>Free-form guidance about what this storage should contain — shape of files, naming conventions, required fields, etc. Shown to the agent.
files: Vec<StorageFileHint>Optional concrete file hints. Only meaningful when kind = Folder.
These describe expected files inside the folder; they are not enforced.
Trait Implementations§
Source§impl Clone for StorageSpec
impl Clone for StorageSpec
Source§fn clone(&self) -> StorageSpec
fn clone(&self) -> StorageSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more