Struct lib_flutter_rust_bridge_codegen::Opts
source · [−]pub struct Opts {Show 18 fields
pub rust_input_path: String,
pub dart_output_path: String,
pub dart_decl_output_path: Option<String>,
pub c_output_path: Vec<String>,
pub rust_crate_dir: String,
pub rust_output_path: String,
pub class_name: String,
pub dart_format_line_length: u32,
pub skip_add_mod_to_lib: bool,
pub llvm_path: Vec<String>,
pub llvm_compiler_opts: String,
pub manifest_path: String,
pub dart_root: Option<String>,
pub build_runner: bool,
pub block_index: BlockIndex,
pub skip_deps_check: bool,
pub wasm_enabled: bool,
pub inline_rust: bool,
}
Fields
rust_input_path: String
dart_output_path: String
dart_decl_output_path: Option<String>
c_output_path: Vec<String>
rust_crate_dir: String
rust_output_path: String
class_name: String
dart_format_line_length: u32
skip_add_mod_to_lib: bool
llvm_path: Vec<String>
llvm_compiler_opts: String
manifest_path: String
dart_root: Option<String>
build_runner: bool
block_index: BlockIndex
skip_deps_check: bool
wasm_enabled: bool
inline_rust: bool
Implementations
sourceimpl Opts
impl Opts
pub fn get_ir_file(&self) -> IrFile
pub fn dart_api_class_name(&self) -> String
pub fn dart_api_impl_class_name(&self) -> String
pub fn dart_wire_class_name(&self) -> String
pub fn dart_platform_class_name(&self) -> String
pub fn dart_wasm_module(&self) -> String
pub fn dart_wasm_output_path(&self) -> PathBuf
pub fn dart_io_output_path(&self) -> PathBuf
pub fn dart_common_output_path(&self) -> PathBuf
pub fn rust_wasm_output_path(&self) -> PathBuf
pub fn rust_io_output_path(&self) -> PathBuf
pub fn dart_root_or_default(&self) -> String
pub fn dart_freezed_path(&self) -> PathBuf
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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