Struct cargo_toml2::TargetConfig
source · pub struct TargetConfig {
pub name: Option<String>,
pub path: Option<PathBuf>,
pub test: Option<bool>,
pub doctest: Option<bool>,
pub bench: Option<bool>,
pub plugin: Option<bool>,
pub proc_macro: Option<bool>,
pub harness: Option<bool>,
pub edition: Option<String>,
pub required_features: Option<Vec<String>>,
pub crate_type: Option<Vec<String>>,
}
Expand description
All the sections here use the same stuff. https://doc.rust-lang.org/cargo/reference/manifest.html#configuring-a-target
Fields
name: Option<String>
path: Option<PathBuf>
test: Option<bool>
doctest: Option<bool>
bench: Option<bool>
plugin: Option<bool>
proc_macro: Option<bool>
harness: Option<bool>
edition: Option<String>
required_features: Option<Vec<String>>
crate_type: Option<Vec<String>>
Trait Implementations
sourceimpl Clone for TargetConfig
impl Clone for TargetConfig
sourcefn clone(&self) -> TargetConfig
fn clone(&self) -> TargetConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TargetConfig
impl Debug for TargetConfig
sourceimpl Default for TargetConfig
impl Default for TargetConfig
sourcefn default() -> TargetConfig
fn default() -> TargetConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TargetConfig
impl<'de> Deserialize<'de> for TargetConfig
sourcefn 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
sourceimpl Serialize for TargetConfig
impl Serialize for TargetConfig
Auto Trait Implementations
impl RefUnwindSafe for TargetConfig
impl Send for TargetConfig
impl Sync for TargetConfig
impl Unpin for TargetConfig
impl UnwindSafe for TargetConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more