pub struct PluginEntry {
pub name: Loose<String>,
pub version: Option<Value>,
pub github: Option<Value>,
pub local: Option<Value>,
pub registry: Option<Value>,
pub unknown: UnknownKeys,
}Expand description
A package with its source.
Fields§
§name: Loose<String>The package name: lowercase letters, digits and _.
version: Option<Value>A version constraint such as 1.2.0 or >=1.0. Not allowed with local.
github: Option<Value>Install from the releases of this GitHub repository, owner/repo.
local: Option<Value>Use the package folder at this path as it is.
registry: Option<Value>Install from this registry index (a URL or a path) instead of the default one.
unknown: UnknownKeysTrait Implementations§
Source§impl<'de> Deserialize<'de> for PluginEntry
impl<'de> Deserialize<'de> for PluginEntry
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 JsonSchema for PluginEntry
impl JsonSchema for PluginEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PluginEntry
impl RefUnwindSafe for PluginEntry
impl Send for PluginEntry
impl Sync for PluginEntry
impl Unpin for PluginEntry
impl UnsafeUnpin for PluginEntry
impl UnwindSafe for PluginEntry
Blanket Implementations§
impl<T> Allocation for T
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