pub struct Draft {
pub key: String,
pub kind: DraftKind,
pub server: Server,
pub inputs: Vec<DraftInput>,
pub runs_repo_code: bool,
pub checkout: bool,
pub pinned: bool,
pub setup: Vec<String>,
pub also_in: Vec<String>,
pub scan: ScanReport,
pub trust_source: Option<SourceRef>,
}Expand description
One proposed server.
Fields§
§key: StringNames the draft in Pick::key: <file>#<entry> or <file>.
kind: DraftKind§server: ServerThe proposed store server: meta.origin and meta.source set, no
enablement.
inputs: Vec<DraftInput>§runs_repo_code: boolIt runs code from the source (the folder’s files, or the repository as a package) every time a client starts it.
checkout: boolIt runs from <SURJECTION_HOME>/servers/<id> (git sources).
pinned: boolThe command names a version or commit; false for a registry
package without a concrete version (the scan flags it too).
setup: Vec<String>Steps the user runs before it works (docker build ...); never run
by Surjection. They may hold ${home} and ${surjection_home}
(setup_text).
also_in: Vec<String>Other files that held an identical definition.
scan: ScanReportThe folder’s files and every launch line of this draft.
trust_source: Option<SourceRef>What this draft runs, gated on its own (a registry entry’s package
or remote host, #26); None: Resolved::trust_source gates it.
Implementations§
Source§impl Draft
impl Draft
Sourcepub fn provenance(&self) -> &ServerSource
pub fn provenance(&self) -> &ServerSource
The draft’s provenance.