Struct cargo_gazelle::context::BuildScriptContext
source · pub struct BuildScriptContext {
pub generated_protos: Vec<String>,
pub proto_dependencies: BTreeSet<Utf8PathBuf>,
}
Fields§
§generated_protos: Vec<String>
What protobuf files, if any, this build script generates bindings for.
proto_dependencies: BTreeSet<Utf8PathBuf>
Relative paths of dependencies for the protobuf files we generate.
Implementations§
source§impl BuildScriptContext
impl BuildScriptContext
pub fn generate( config: &GlobalConfig, build_script_path: impl AsRef<Path>, ) -> Result<BuildScriptContext, Error>
Trait Implementations§
source§impl Clone for BuildScriptContext
impl Clone for BuildScriptContext
source§fn clone(&self) -> BuildScriptContext
fn clone(&self) -> BuildScriptContext
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 BuildScriptContext
impl Debug for BuildScriptContext
source§impl Default for BuildScriptContext
impl Default for BuildScriptContext
source§fn default() -> BuildScriptContext
fn default() -> BuildScriptContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuildScriptContext
impl RefUnwindSafe for BuildScriptContext
impl Send for BuildScriptContext
impl Sync for BuildScriptContext
impl Unpin for BuildScriptContext
impl UnwindSafe for BuildScriptContext
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)