pub enum MarketplaceSource {
GitHub {
repo: String,
ref_: Option<String>,
path: Option<String>,
},
Git {
url: String,
ref_: Option<String>,
path: Option<String>,
},
Url {
url: String,
},
Npm {
package: String,
},
Local {
path: PathBuf,
},
Inline {
name: String,
plugins: Vec<MarketplaceEntry>,
},
}Expand description
Where a marketplace manifest is fetched from.
Variants§
GitHub
GitHub repository containing marketplace.json.
Git
Arbitrary git URL.
Url
Direct URL to marketplace.json.
Npm
npm package containing marketplace.json.
Local
Local directory containing marketplace.json.
Inline
Inline marketplace defined in config (no remote fetch needed).
Trait Implementations§
Source§impl Clone for MarketplaceSource
impl Clone for MarketplaceSource
Source§fn clone(&self) -> MarketplaceSource
fn clone(&self) -> MarketplaceSource
Returns a duplicate of the value. Read more
1.0.0 · 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 MarketplaceSource
impl Debug for MarketplaceSource
Source§impl<'de> Deserialize<'de> for MarketplaceSource
impl<'de> Deserialize<'de> for MarketplaceSource
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
Auto Trait Implementations§
impl Freeze for MarketplaceSource
impl RefUnwindSafe for MarketplaceSource
impl Send for MarketplaceSource
impl Sync for MarketplaceSource
impl Unpin for MarketplaceSource
impl UnsafeUnpin for MarketplaceSource
impl UnwindSafe for MarketplaceSource
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