pub struct ModuleId {
pub name: String,
pub version: String,
}Expand description
Unique identifier for an installed module, in the form name@version.
name: must match^[a-zA-Z0-9_-]+$version: must be a strict semantic versionx.y.z(three numeric parts, no leading zeros)
Build metadata (+...) and pre-release (-...) are not supported to ensure uniqueness
and simplify dependency resolution.
Fields§
§name: String§version: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModuleId
impl<'de> Deserialize<'de> for ModuleId
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>,
Deserializes from:
- String:
"name@version" - Struct:
{ "name": "...", "version": "..." }
impl Eq for ModuleId
impl StructuralPartialEq for ModuleId
Auto Trait Implementations§
impl Freeze for ModuleId
impl RefUnwindSafe for ModuleId
impl Send for ModuleId
impl Sync for ModuleId
impl Unpin for ModuleId
impl UnwindSafe for ModuleId
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> 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.