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§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
)