pub struct WasiModule {
pub package: Option<WasiPublisher>,
pub name: Arc<str>,
pub version: Option<Version>,
}
Expand description
e.g: wasi:random/random@0.2.0
Fields§
§package: Option<WasiPublisher>
§name: Arc<str>
§version: Option<Version>
Implementations§
Source§impl WasiModule
impl WasiModule
Sourcepub fn with_publisher(self, publisher: WasiPublisher) -> Self
pub fn with_publisher(self, publisher: WasiPublisher) -> Self
Set the publisher for the module
Sourcepub fn with_version(self, version: Version) -> Self
pub fn with_version(self, version: Version) -> Self
Set the version for the module
Trait Implementations§
Source§impl Clone for WasiModule
impl Clone for WasiModule
Source§fn clone(&self) -> WasiModule
fn clone(&self) -> WasiModule
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 WasiModule
impl Debug for WasiModule
Source§impl Display for WasiModule
impl Display for WasiModule
Source§impl From<&str> for WasiModule
impl From<&str> for WasiModule
Source§impl From<String> for WasiModule
impl From<String> for WasiModule
Source§impl FromStr for WasiModule
impl FromStr for WasiModule
Source§fn from_str(s: &str) -> Result<Self, SyntaxError>
fn from_str(s: &str) -> Result<Self, SyntaxError>
wasi:random/random@0.2.0
wasi:random/random
random
Source§type Err = SyntaxError
type Err = SyntaxError
The associated error which can be returned from parsing.
Source§impl Hash for WasiModule
impl Hash for WasiModule
Source§impl Ord for WasiModule
impl Ord for WasiModule
Source§fn cmp(&self, other: &WasiModule) -> Ordering
fn cmp(&self, other: &WasiModule) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasiModule
impl PartialEq for WasiModule
Source§impl PartialOrd for WasiModule
impl PartialOrd for WasiModule
impl Eq for WasiModule
impl StructuralPartialEq for WasiModule
Auto Trait Implementations§
impl Freeze for WasiModule
impl RefUnwindSafe for WasiModule
impl Send for WasiModule
impl Sync for WasiModule
impl Unpin for WasiModule
impl UnwindSafe for WasiModule
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key
and return true
if they are equal.