Struct lib_flutter_rust_bridge_codegen::RawOpts
source · [−]pub struct RawOpts {Show 14 fields
pub rust_input: Vec<String>,
pub dart_output: Vec<String>,
pub dart_decl_output: Option<String>,
pub c_output: Option<Vec<String>>,
pub rust_crate_dir: Option<Vec<String>>,
pub rust_output: Option<Vec<String>>,
pub class_name: Option<Vec<String>>,
pub dart_format_line_length: Option<i32>,
pub skip_add_mod_to_lib: bool,
pub llvm_path: Option<Vec<String>>,
pub llvm_compiler_opts: Option<String>,
pub dart_root: Option<Vec<String>>,
pub no_build_runner: bool,
pub verbose: bool,
}
Fields
rust_input: Vec<String>
Path of input Rust code
dart_output: Vec<String>
Path of output generated Dart code
dart_decl_output: Option<String>
If provided, generated Dart declaration code to this separate file
c_output: Option<Vec<String>>
Path of output generated C header
rust_crate_dir: Option<Vec<String>>
Crate directory for your Rust project
rust_output: Option<Vec<String>>
Path of output generated Rust code
class_name: Option<Vec<String>>
Generated class name
dart_format_line_length: Option<i32>
Line length for dart formatting
skip_add_mod_to_lib: bool
Skip automatically adding mod bridge_generated;
to lib.rs
llvm_path: Option<Vec<String>>
Path to the installed LLVM
llvm_compiler_opts: Option<String>
LLVM compiler opts
dart_root: Option<Vec<String>>
Path to root of Dart project, otherwise inferred from –dart-output
no_build_runner: bool
Skip running build_runner even when codegen-capable code is detected
verbose: bool
Show debug messages.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RawOpts
impl<'de> Deserialize<'de> for RawOpts
sourcefn 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
sourceimpl StructOpt for RawOpts
impl StructOpt for RawOpts
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic. Read more
sourcefn from_args() -> Self
fn from_args() -> Self
Builds the struct from the command line arguments (std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read more
sourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
Builds the struct from the command line arguments (std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you. Read more
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
sourcefn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
impl StructuralPartialEq for RawOpts
Auto Trait Implementations
impl RefUnwindSafe for RawOpts
impl Send for RawOpts
impl Sync for RawOpts
impl Unpin for RawOpts
impl UnwindSafe for RawOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more