pub enum ComponentRef {
Range {
name: String,
range: VersionReq,
component_type: ComponentType,
},
Pinned(PinnedRef),
}Expand description
A reference to a component: either a capture-time semver range or a
finalized exact pin. The kind discriminator ("range" | "pinned") is
the wire-format contract other consumers key off of. component_type is
a separate, required axis on BOTH variants (D-D) — see module docs.
Variants§
Implementations§
Source§impl ComponentRef
impl ComponentRef
Sourcepub fn component_type(&self) -> ComponentType
pub fn component_type(&self) -> ComponentType
The component type, regardless of variant (D-D identity axis).
Trait Implementations§
Source§impl Clone for ComponentRef
impl Clone for ComponentRef
Source§impl Debug for ComponentRef
impl Debug for ComponentRef
Source§impl<'de> Deserialize<'de> for ComponentRef
impl<'de> Deserialize<'de> for ComponentRef
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
impl Eq for ComponentRef
Source§impl PartialEq for ComponentRef
impl PartialEq for ComponentRef
Source§impl Serialize for ComponentRef
impl Serialize for ComponentRef
impl StructuralPartialEq for ComponentRef
Auto Trait Implementations§
impl Freeze for ComponentRef
impl RefUnwindSafe for ComponentRef
impl Send for ComponentRef
impl Sync for ComponentRef
impl Unpin for ComponentRef
impl UnsafeUnpin for ComponentRef
impl UnwindSafe for ComponentRef
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