pub struct ExecSpec {
pub argv: Vec<String>,
pub passthrough: bool,
pub url: Option<String>,
pub file: Option<String>,
pub sha256: Option<String>,
pub ttl: Option<u64>,
}Fields§
§argv: Vec<String>Program argv. For remote url / local file leaves this is an optional
interpreter prefix (e.g. ["python3"]); the script path is appended automatically.
passthrough: boolAppend extra CLI arguments after those from argv / the script path.
url: Option<String>HTTPS URL of a remote script to download, verify, and run.
file: Option<String>Local script path relative to the jan use root (optional sha256 pin).
sha256: Option<String>SHA256 of the script: required with url, optional with file.
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