pub struct GlobalConfig {
pub ignored_crates: Vec<Cow<'static, str>>,
pub proto_build_crates: Vec<Cow<'static, str>>,
}
Expand description
Global configuration for generating BUILD
files.
Fields§
§ignored_crates: Vec<Cow<'static, str>>
§proto_build_crates: Vec<Cow<'static, str>>
Implementations§
Source§impl GlobalConfig
impl GlobalConfig
Sourcepub fn include_dep(&self, name: &str) -> bool
pub fn include_dep(&self, name: &str) -> bool
Returns true
if the named dependency should be included, false
if it should be ignored.
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
Returns a copy 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 GlobalConfig
impl Debug for GlobalConfig
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)