pub enum SourceType {
Registry {
registry: Registry,
},
Wasm {
wasm: Vec<u8>,
git_info: Option<GitInfo>,
},
}
Expand description
Specifies the source type - aka how to get the wasm module
This is either a Registry
, which can be used to download the .wasm
blob,
or it is an inline definition, that just contains the compiled .wasm
module.
Variants§
Registry
Registry, where the wasm module can be fetched from
Wasm
Compiled wasm module
Fields
§
git_info: Option<GitInfo>
Git information
When creating the package, this information can be added to aid with debugging. In general, the version should be enough to describe the package, but when not working with a registry (which does some sanity checks and e.g. forbids changing the code without increasing the version number), it is easier to make mistakes along the way. Being able to track back the origin of the compiled module to its git hash is very helpful.
Trait Implementations§
Source§impl Clone for SourceType
impl Clone for SourceType
Source§fn clone(&self) -> SourceType
fn clone(&self) -> SourceType
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceType
impl Debug for SourceType
Source§impl<'de> Deserialize<'de> for SourceType
impl<'de> Deserialize<'de> for SourceType
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 SourceType
impl RefUnwindSafe for SourceType
impl Send for SourceType
impl Sync for SourceType
impl Unpin for SourceType
impl UnwindSafe for SourceType
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