pub struct BoxManifest {Show 14 fields
pub schema_version: u32,
pub box_id: String,
pub model_id: String,
pub runtime_id: String,
pub version: String,
pub target: BoxTarget,
pub python_entry_point: String,
pub model_cache_subdir: String,
pub environment: Option<BTreeMap<String, String>>,
pub self_test: SelfTest,
pub execution: Option<Execution>,
pub provenance: Provenance,
pub weights: Option<String>,
pub assets: Option<Vec<AssetDescriptor>>,
}Expand description
The box’s self-description, carried inside the archive.
Every field it holds also appears in the release, and all of them must agree: without that, a correctly hashed archive could be paired with a signed manifest describing something else.
Fields§
§schema_version: u32Format version; always 2.
box_id: StringBox identity.
model_id: StringModel identity.
runtime_id: StringInstalled-directory identity.
version: StringBox version.
target: BoxTargetThe target this box was built for.
python_entry_point: StringInterpreter path, relative to the box root.
model_cache_subdir: StringWhere a caller’s model cache belongs inside the box.
environment: Option<BTreeMap<String, String>>Signed environment applied whenever Scrollcase runs the interpreter.
self_test: SelfTestThe import check.
execution: Option<Execution>The optional application entry point.
provenance: ProvenanceHow the box was produced.
weights: Option<String>Present only when assets are carried outside the archive.
assets: Option<Vec<AssetDescriptor>>Descriptors of the assets a caller must materialise.
Trait Implementations§
Source§impl Clone for BoxManifest
impl Clone for BoxManifest
Source§fn clone(&self) -> BoxManifest
fn clone(&self) -> BoxManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoxManifest
impl Debug for BoxManifest
Source§impl<'de> Deserialize<'de> for BoxManifest
impl<'de> Deserialize<'de> for BoxManifest
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
Source§impl PartialEq for BoxManifest
impl PartialEq for BoxManifest
Source§impl Serialize for BoxManifest
impl Serialize for BoxManifest
impl StructuralPartialEq for BoxManifest
Auto Trait Implementations§
impl Freeze for BoxManifest
impl RefUnwindSafe for BoxManifest
impl Send for BoxManifest
impl Sync for BoxManifest
impl Unpin for BoxManifest
impl UnsafeUnpin for BoxManifest
impl UnwindSafe for BoxManifest
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