pub enum PluginSource {
Local {
path: AbsolutePathBuf,
},
Git {
path: Option<String>,
ref_name: Option<String>,
sha: Option<String>,
url: String,
},
Npm {
package: String,
registry: Option<String>,
version: Option<String>,
},
Remote,
}Expand description
PluginSource
JSON schema
{
"oneOf": [
{
"title": "LocalPluginSource",
"type": "object",
"required": [
"path",
"type"
],
"properties": {
"path": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": {
"title": "LocalPluginSourceType",
"type": "string",
"enum": [
"local"
]
}
}
},
{
"title": "GitPluginSource",
"type": "object",
"required": [
"type",
"url"
],
"properties": {
"path": {
"type": [
"string",
"null"
]
},
"refName": {
"type": [
"string",
"null"
]
},
"sha": {
"type": [
"string",
"null"
]
},
"type": {
"title": "GitPluginSourceType",
"type": "string",
"enum": [
"git"
]
},
"url": {
"type": "string"
}
}
},
{
"title": "NpmPluginSource",
"type": "object",
"required": [
"package",
"type"
],
"properties": {
"package": {
"type": "string"
},
"registry": {
"description": "Optional HTTPS registry URL. Authentication stays in the user's npm config.",
"type": [
"string",
"null"
]
},
"type": {
"title": "NpmPluginSourceType",
"type": "string",
"enum": [
"npm"
]
},
"version": {
"description": "Optional npm version or version range.",
"type": [
"string",
"null"
]
}
}
},
{
"title": "RemotePluginSource",
"description": "The plugin is available in the remote catalog. Download metadata is kept server-side and is not exposed through the app-server API.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "RemotePluginSourceType",
"type": "string",
"enum": [
"remote"
]
}
}
}
]
}Variants§
Local
LocalPluginSource
Fields
§
path: AbsolutePathBufGit
GitPluginSource
Npm
NpmPluginSource
Fields
Remote
Trait Implementations§
Source§impl Clone for PluginSource
impl Clone for PluginSource
Source§fn clone(&self) -> PluginSource
fn clone(&self) -> PluginSource
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 PluginSource
impl Debug for PluginSource
Source§impl<'de> Deserialize<'de> for PluginSource
impl<'de> Deserialize<'de> for PluginSource
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 PluginSource
impl RefUnwindSafe for PluginSource
impl Send for PluginSource
impl Sync for PluginSource
impl Unpin for PluginSource
impl UnsafeUnpin for PluginSource
impl UnwindSafe for PluginSource
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