pub struct Config {
Show 22 fields pub base_dir: Option<String>, pub rust_input: String, pub dart_output: String, pub c_output: Option<String>, pub duplicated_c_output: Option<Vec<String>>, pub rust_root: Option<String>, pub rust_output: Option<String>, pub dart_entrypoint_class_name: Option<String>, pub dart_format_line_length: Option<u32>, pub dart_enums_style: Option<bool>, pub add_mod_to_lib: Option<bool>, pub llvm_path: Option<Vec<String>>, pub llvm_compiler_opts: Option<String>, pub dart_root: Option<String>, pub build_runner: Option<bool>, pub extra_headers: Option<String>, pub web: Option<bool>, pub deps_check: Option<bool>, pub dart3: Option<bool>, pub default_external_library_loader_web_prefix: Option<String>, pub dump: Option<Vec<ConfigDumpContent>>, pub dump_all: Option<bool>,
}
Expand description

Configuration for code generation Refer to GenerateCommandArgs for documentations

Fields§

§base_dir: Option<String>§rust_input: String§dart_output: String§c_output: Option<String>§duplicated_c_output: Option<Vec<String>>§rust_root: Option<String>§rust_output: Option<String>§dart_entrypoint_class_name: Option<String>§dart_format_line_length: Option<u32>§dart_enums_style: Option<bool>§add_mod_to_lib: Option<bool>§llvm_path: Option<Vec<String>>§llvm_compiler_opts: Option<String>§dart_root: Option<String>§build_runner: Option<bool>§extra_headers: Option<String>§web: Option<bool>§deps_check: Option<bool>§dart3: Option<bool>§default_external_library_loader_web_prefix: Option<String>§dump: Option<Vec<ConfigDumpContent>>§dump_all: Option<bool>

Implementations§

source§

impl Config

source

pub fn from_files_auto() -> Result<Self, Error>

source

pub fn from_config_file(location: &str) -> Result<Option<Self>, Error>

Trait Implementations§

source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Config

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Config

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,