pub(crate) struct BundleCmd {
pub(crate) source: PathBuf,
pub(crate) out_dir: PathBuf,
pub(crate) name: Option<String>,
pub(crate) include_root: Vec<PathBuf>,
pub(crate) exclude: Vec<String>,
pub(crate) include_glob: String,
pub(crate) emit: Vec<EmitKind>,
pub(crate) on_conflict: ConflictArg,
pub(crate) wkt_imports: WktArg,
}Fields§
§source: PathBufProto source: a .proto file, a directory of protos, or a Java repo root.
out_dir: PathBufDirectory to write outputs into.
name: Option<String>Output basename (default: derived from the source path).
include_root: Vec<PathBuf>Extra include root added on top of auto-detection (repeatable) — for cross-repo dependencies whose .proto live outside the source.
exclude: Vec<String>Directory-name component to prune from discovery, e.g. a vendored build-staging tree (repeatable).
include_glob: StringTrailing path suffix that marks an include root in repo mode.
emit: Vec<EmitKind>Which artefacts to emit (comma-separated; default: all). Unknown values are
rejected. single = one combined .proto file; proto = one .proto per
package; odcs = an ODCS v3.1.0 data contract (<name>.odcs.json).
on_conflict: ConflictArgWhat to do when one import path resolves to differing content.
wkt_imports: WktArgWhere the Google well-known-type imports live.
Trait Implementations§
Source§impl Args for BundleCmd
impl Args for BundleCmd
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for BundleCmd
impl FromArgMatches for BundleCmd
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.