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