pub enum PatchSourceKind {
Path,
}Expand description
Kind of source a patch points at. Today only local paths are supported. The enum is closed: adding new source kinds is a deliberate change that requires matching parser, validator, and resolver work.
Variants§
Path
A local filesystem path that contains a Cabin package
(a directory with a cabin.toml file).
Implementations§
Trait Implementations§
Source§impl Clone for PatchSourceKind
impl Clone for PatchSourceKind
Source§fn clone(&self) -> PatchSourceKind
fn clone(&self) -> PatchSourceKind
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 PatchSourceKind
impl Debug for PatchSourceKind
Source§impl<'de> Deserialize<'de> for PatchSourceKind
impl<'de> Deserialize<'de> for PatchSourceKind
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 PatchSourceKind
impl Display for PatchSourceKind
Source§impl Hash for PatchSourceKind
impl Hash for PatchSourceKind
Source§impl PartialEq for PatchSourceKind
impl PartialEq for PatchSourceKind
Source§fn eq(&self, other: &PatchSourceKind) -> bool
fn eq(&self, other: &PatchSourceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatchSourceKind
impl Serialize for PatchSourceKind
impl Copy for PatchSourceKind
impl Eq for PatchSourceKind
impl StructuralPartialEq for PatchSourceKind
Auto Trait Implementations§
impl Freeze for PatchSourceKind
impl RefUnwindSafe for PatchSourceKind
impl Send for PatchSourceKind
impl Sync for PatchSourceKind
impl Unpin for PatchSourceKind
impl UnsafeUnpin for PatchSourceKind
impl UnwindSafe for PatchSourceKind
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.