pub struct PackageRef { /* private fields */ }Expand description
A package reference, consisting of kebab-case namespace and name.
Ex: wasm-pkg:client
Implementations§
Trait Implementations§
Source§impl Clone for PackageRef
impl Clone for PackageRef
Source§fn clone(&self) -> PackageRef
fn clone(&self) -> PackageRef
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 PackageRef
impl Debug for PackageRef
Source§impl<'de> Deserialize<'de> for PackageRef
impl<'de> Deserialize<'de> for PackageRef
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 PackageRef
impl Display for PackageRef
Source§impl From<PackageRef> for String
impl From<PackageRef> for String
Source§fn from(value: PackageRef) -> Self
fn from(value: PackageRef) -> Self
Converts to this type from the input type.
Source§impl FromStr for PackageRef
impl FromStr for PackageRef
Source§impl Hash for PackageRef
impl Hash for PackageRef
Source§impl Ord for PackageRef
impl Ord for PackageRef
Source§fn cmp(&self, other: &PackageRef) -> Ordering
fn cmp(&self, other: &PackageRef) -> 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 PackageRef
impl PartialEq for PackageRef
Source§impl PartialOrd for PackageRef
impl PartialOrd for PackageRef
Source§impl Serialize for PackageRef
impl Serialize for PackageRef
Source§impl TryFrom<String> for PackageRef
impl TryFrom<String> for PackageRef
impl Eq for PackageRef
impl StructuralPartialEq for PackageRef
Auto Trait Implementations§
impl Freeze for PackageRef
impl RefUnwindSafe for PackageRef
impl Send for PackageRef
impl Sync for PackageRef
impl Unpin for PackageRef
impl UnwindSafe for PackageRef
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