pub struct SubprocessConfig {
pub command: Program,
pub args: Vec<String>,
pub secrets: Vec<CredentialName>,
pub settings: Value,
pub deadline_ms: NonZeroU64,
}Expand description
How to run a plugin that speaks docs/plugin-protocol.md.
settings is the seam that keeps this one plugin general: it is handed to the child
as its config: block verbatim, so what a Python source needs and what a Rust one
needs are that child’s business rather than a field of this schema. Which is also why
the credentials a child may see are named here rather than inherited: §3.1 forbids a
plugin reading credentials from its own environment, and forwarding the engine’s whole
environment would hand every plugin every secret on the host.
Fields§
§command: ProgramThe program to run.
args: Vec<String>Arguments to run it with.
secrets: Vec<CredentialName>The environment variables whose resolved values the handshake forwards.
settings: ValueThis source’s own settings, handed to the child verbatim.
deadline_ms: NonZeroU64Defaults to 30 seconds and cannot be zero.
Trait Implementations§
Source§impl Clone for SubprocessConfig
impl Clone for SubprocessConfig
Source§fn clone(&self) -> SubprocessConfig
fn clone(&self) -> SubprocessConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubprocessConfig
impl Debug for SubprocessConfig
Source§impl<'de> Deserialize<'de> for SubprocessConfig
impl<'de> Deserialize<'de> for SubprocessConfig
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 JsonSchema for SubprocessConfig
impl JsonSchema for SubprocessConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more