pub struct ExecSpec {
pub argv: Vec<String>,
pub passthrough: bool,
pub url: Option<String>,
pub sha256: Option<String>,
pub ttl: Option<u64>,
}Fields§
§argv: Vec<String>Program argv. For remote url leaves this is an optional interpreter prefix
(e.g. ["python3"]); the cached script path is appended automatically.
passthrough: boolAppend extra CLI arguments after those from argv / the remote script.
url: Option<String>HTTPS URL of a remote script to download, verify, and run.
sha256: Option<String>Required SHA256 when url is set.
ttl: Option<u64>Optional TTL override (seconds) for the remote script cache.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExecSpec
impl<'de> Deserialize<'de> for ExecSpec
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 ExecSpec
impl RefUnwindSafe for ExecSpec
impl Send for ExecSpec
impl Sync for ExecSpec
impl Unpin for ExecSpec
impl UnsafeUnpin for ExecSpec
impl UnwindSafe for ExecSpec
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