Enum wasmer_config::package::ModuleReference
source · pub enum ModuleReference {
CurrentPackage {
module: String,
},
Dependency {
dependency: String,
module: String,
},
}
Expand description
A reference to a module which may or may not come from another package.
§Serialization
A ModuleReference
is serialized via its String
representation.
Variants§
CurrentPackage
A module in the current package.
Dependency
A module that will be provided by a dependency, in dependency:module
form.
Trait Implementations§
source§impl Clone for ModuleReference
impl Clone for ModuleReference
source§fn clone(&self) -> ModuleReference
fn clone(&self) -> ModuleReference
Returns a copy 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 ModuleReference
impl Debug for ModuleReference
source§impl<'de> Deserialize<'de> for ModuleReference
impl<'de> Deserialize<'de> for ModuleReference
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 Display for ModuleReference
impl Display for ModuleReference
source§impl FromStr for ModuleReference
impl FromStr for ModuleReference
source§impl PartialEq for ModuleReference
impl PartialEq for ModuleReference
source§fn eq(&self, other: &ModuleReference) -> bool
fn eq(&self, other: &ModuleReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ModuleReference
impl Serialize for ModuleReference
impl StructuralPartialEq for ModuleReference
Auto Trait Implementations§
impl Freeze for ModuleReference
impl RefUnwindSafe for ModuleReference
impl Send for ModuleReference
impl Sync for ModuleReference
impl Unpin for ModuleReference
impl UnwindSafe for ModuleReference
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)