pub struct RuntimeManifest {
pub format_version: u32,
pub crate_version: String,
pub runtime_version: String,
pub release_base_url: String,
pub contract_hash: String,
pub targets: BTreeMap<String, RuntimeTarget>,
}Fields§
§format_version: u32§crate_version: String§runtime_version: String§release_base_url: String§contract_hash: String§targets: BTreeMap<String, RuntimeTarget>Implementations§
Source§impl RuntimeManifest
impl RuntimeManifest
Sourcepub fn pinned() -> Result<Self>
pub fn pinned() -> Result<Self>
The release adapter embeds immutable archive digests into the crate.
Sourcepub fn from_json(bytes: &[u8]) -> Result<Self>
pub fn from_json(bytes: &[u8]) -> Result<Self>
Accept only manifests obtained through a trusted, independently verified release channel. An adjacent downloaded checksum is not a trust anchor.
Sourcepub fn resolve(&self, cache: &Path, target: &str) -> Result<Installation>
pub fn resolve(&self, cache: &Path, target: &str) -> Result<Installation>
Verify and resolve an existing installation, without network access.
Sourcepub fn install_archive(
&self,
cache: &Path,
target: &str,
archive: &Path,
) -> Result<Installation>
pub fn install_archive( &self, cache: &Path, target: &str, archive: &Path, ) -> Result<Installation>
Install a local archive with digests already pinned in this manifest. The explicit target supports cross-provisioning without executing it.
Trait Implementations§
Source§impl Clone for RuntimeManifest
impl Clone for RuntimeManifest
Source§impl Debug for RuntimeManifest
impl Debug for RuntimeManifest
Source§impl<'de> Deserialize<'de> for RuntimeManifest
impl<'de> Deserialize<'de> for RuntimeManifest
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 RuntimeManifest
impl RefUnwindSafe for RuntimeManifest
impl Send for RuntimeManifest
impl Sync for RuntimeManifest
impl Unpin for RuntimeManifest
impl UnsafeUnpin for RuntimeManifest
impl UnwindSafe for RuntimeManifest
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