#[non_exhaustive]pub enum SourceKind {
Url,
HostPattern,
PathPattern,
Github,
Git,
GitSubdir,
Npm,
File,
Directory,
Settings,
SkillsDir,
Other(String),
}Expand description
A marketplace or plugin source’s source.
Docs: extraKnownMarketplaces.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Url
A URL to a marketplace file.
HostPattern
Any marketplace on matching hosts.
PathPattern
Any marketplace at matching paths.
Github
A GitHub repository.
Git
A git repository.
GitSubdir
A subdirectory of a git repository (plugins).
Npm
An npm package.
File
A local marketplace file.
Directory
A local directory.
Settings
A marketplace declared inline in settings.
SkillsDir
The skills directory.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SourceKind
impl AsRef<str> for SourceKind
Source§impl Clone for SourceKind
impl Clone for SourceKind
Source§impl Debug for SourceKind
impl Debug for SourceKind
Source§impl<'de> Deserialize<'de> for SourceKind
impl<'de> Deserialize<'de> for SourceKind
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SourceKind
impl Display for SourceKind
impl Eq for SourceKind
Source§impl From<&str> for SourceKind
impl From<&str> for SourceKind
Source§impl From<String> for SourceKind
impl From<String> for SourceKind
Source§impl Hash for SourceKind
impl Hash for SourceKind
Source§impl Ord for SourceKind
impl Ord for SourceKind
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SourceKind
impl PartialEq for SourceKind
Source§impl PartialOrd for SourceKind
impl PartialOrd for SourceKind
Source§impl Serialize for SourceKind
impl Serialize for SourceKind
impl StructuralPartialEq for SourceKind
Auto Trait Implementations§
impl Forget for SourceKind
impl Freeze for SourceKind
impl Move for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnsafeUnpin for SourceKind
impl UnwindSafe for SourceKind
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