pub struct PrebuiltAsset {
pub url: String,
pub sha256: String,
}Expand description
Per-host-triple prebuilt distribution asset for an extension. Lives
inside ExtensionManifest::prebuilt. When a matching entry exists
for the current host, the installer fetches url, verifies its
SHA-256 against sha256, and extracts it into the plugin install
directory — letting users skip a (potentially slow) source build.
The archive is expected to lay out files relative to the plugin root
such that ExtensionManifest::command resolves after extraction.
Fields§
§url: StringHTTPS URL of the archive (.tar.gz or .zip). The installer
refuses non-https:// schemes and file:// (except in tests
gated by cfg(test)).
sha256: StringHex-encoded SHA-256 of the archive bytes; required. The
installer aborts and surfaces an error if the downloaded bytes
don’t match — same model as the existing marketplace
checksum_value for plugin sources.
Trait Implementations§
Source§impl Clone for PrebuiltAsset
impl Clone for PrebuiltAsset
Source§fn clone(&self) -> PrebuiltAsset
fn clone(&self) -> PrebuiltAsset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PrebuiltAsset
impl Debug for PrebuiltAsset
Source§impl<'de> Deserialize<'de> for PrebuiltAsset
impl<'de> Deserialize<'de> for PrebuiltAsset
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>,
Source§impl PartialEq for PrebuiltAsset
impl PartialEq for PrebuiltAsset
Source§impl Serialize for PrebuiltAsset
impl Serialize for PrebuiltAsset
impl Eq for PrebuiltAsset
impl StructuralPartialEq for PrebuiltAsset
Auto Trait Implementations§
impl Freeze for PrebuiltAsset
impl RefUnwindSafe for PrebuiltAsset
impl Send for PrebuiltAsset
impl Sync for PrebuiltAsset
impl Unpin for PrebuiltAsset
impl UnsafeUnpin for PrebuiltAsset
impl UnwindSafe for PrebuiltAsset
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.