pub enum PortDepSource {
Builtin {
name: PackageName,
version_req: VersionReq,
},
Path(PathBuf),
}Expand description
Where a foundation-port dependency’s recipe comes from.
Constructed by the manifest parser from one of the two recipe-locator fields:
{ port = true, version = "..." }→Builtin { name, version_req }. The recipe is resolved fromcabin_port::builtin::BUILTINby the discovery layer using the consumer-suppliedversion_req.{ port-path = "..." }→Path(PathBuf). The recipe lives on disk at the given path, interpreted relative to the manifest directory that declared it.
Variants§
Builtin
Bundled curated recipe. version_req is the consumer-supplied requirement,
resolved against cabin_port::builtin::BUILTIN by the discovery layer.
Path(PathBuf)
Trait Implementations§
Source§impl Clone for PortDepSource
impl Clone for PortDepSource
Source§fn clone(&self) -> PortDepSource
fn clone(&self) -> PortDepSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PortDepSource
impl Debug for PortDepSource
Source§impl<'de> Deserialize<'de> for PortDepSource
impl<'de> Deserialize<'de> for PortDepSource
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 PartialEq for PortDepSource
impl PartialEq for PortDepSource
Source§fn eq(&self, other: &PortDepSource) -> bool
fn eq(&self, other: &PortDepSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PortDepSource
impl Serialize for PortDepSource
impl Eq for PortDepSource
impl StructuralPartialEq for PortDepSource
Auto Trait Implementations§
impl Freeze for PortDepSource
impl RefUnwindSafe for PortDepSource
impl Send for PortDepSource
impl Sync for PortDepSource
impl Unpin for PortDepSource
impl UnsafeUnpin for PortDepSource
impl UnwindSafe for PortDepSource
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.