Struct cargo_gazelle::config::BuildConfig
source · pub struct BuildConfig {
common: CommonConfig,
build_script_env: BTreeMap<String, String>,
skip_proto_search: bool,
}
Expand description
Extra configuration for a CargoBuildScript
target.
Fields§
§common: CommonConfig
§build_script_env: BTreeMap<String, String>
Environment variables to set for the build script.
skip_proto_search: bool
Skip the automatic search for protobuf files.
Implementations§
source§impl BuildConfig
impl BuildConfig
pub fn common(&self) -> &CommonConfig
pub fn build_script_env(&self) -> &BTreeMap<String, String>
pub fn skip_proto_search(&self) -> bool
Trait Implementations§
source§impl Debug for BuildConfig
impl Debug for BuildConfig
source§impl Default for BuildConfig
impl Default for BuildConfig
source§fn default() -> BuildConfig
fn default() -> BuildConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BuildConfig
impl<'de> Deserialize<'de> for BuildConfig
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 BuildConfig
impl RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
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