pub struct SvgRoleEntry {
pub role: String,
pub path: String,
pub expected_blake3: String,
pub version: String,
pub closure_roots: Vec<String>,
pub closure_blake3: Option<String>,
pub jail_temp_env: Option<String>,
}Expand description
One provider component the svg raster worker verifies immediately before it executes: a generic role label, the deployment-resolved path, the expected BLAKE3 and version, and, when the deployment pinned one, the enumerated closure the component loads its helpers from and that closure’s aggregate digest. The worker re-hashes everything itself, so a swap after any parent-side validation still fails closed, and failures name the role label only.
Fields§
§role: StringGeneric role label, such as raster-browser.
path: StringAbsolute path of the pinned executable.
expected_blake3: StringExpected lowercase hex BLAKE3 of the executable’s bytes.
version: StringExact version string the executable must report.
closure_roots: Vec<String>The enumerated closure this component loads from: directories and files, each granted as its own subpath.
closure_blake3: Option<String>Expected aggregate digest over that whole closure.
jail_temp_env: Option<String>An additional environment variable the worker points at the jail’s temp directory for this component.
Trait Implementations§
Source§impl Clone for SvgRoleEntry
impl Clone for SvgRoleEntry
Source§impl Debug for SvgRoleEntry
impl Debug for SvgRoleEntry
Source§impl<'de> Deserialize<'de> for SvgRoleEntry
impl<'de> Deserialize<'de> for SvgRoleEntry
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>,
Auto Trait Implementations§
impl Freeze for SvgRoleEntry
impl RefUnwindSafe for SvgRoleEntry
impl Send for SvgRoleEntry
impl Sync for SvgRoleEntry
impl Unpin for SvgRoleEntry
impl UnsafeUnpin for SvgRoleEntry
impl UnwindSafe for SvgRoleEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more