pub struct NargoConfig {
pub name: Option<String>,
pub version: Option<String>,
pub build: Option<BuildConfig>,
pub dev: Option<DevConfig>,
pub plugins: Option<Vec<PluginConfig>>,
pub aliases: Option<HashMap<String, String>>,
pub formatter: Option<Value>,
pub lint: Option<Value>,
}Expand description
Nargo 框架的配置结构
用于管理 Nargo 项目的编译、构建和运行时配置。
Fields§
§name: Option<String>项目名称
version: Option<String>项目版本
build: Option<BuildConfig>编译配置
dev: Option<DevConfig>开发服务器配置
plugins: Option<Vec<PluginConfig>>插件配置
aliases: Option<HashMap<String, String>>路径别名配置
formatter: Option<Value>格式化配置
lint: Option<Value>lint 配置
Trait Implementations§
Source§impl Clone for NargoConfig
impl Clone for NargoConfig
Source§fn clone(&self) -> NargoConfig
fn clone(&self) -> NargoConfig
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 NargoConfig
impl Debug for NargoConfig
Source§impl Default for NargoConfig
impl Default for NargoConfig
Source§fn default() -> NargoConfig
fn default() -> NargoConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NargoConfig
impl<'de> Deserialize<'de> for NargoConfig
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 NargoConfig
impl RefUnwindSafe for NargoConfig
impl Send for NargoConfig
impl Sync for NargoConfig
impl Unpin for NargoConfig
impl UnsafeUnpin for NargoConfig
impl UnwindSafe for NargoConfig
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