pub struct GeneratorConfig {
pub swift_module_name: Option<String>,
pub android_package: Option<String>,
pub node_package_name: Option<String>,
pub wasm_module_name: Option<String>,
pub c_prefix: Option<String>,
pub strip_module_prefix: bool,
}Expand description
Configuration knobs that generators consult at code-generation time.
Every field falls back to a sensible default when None.
Fields§
§swift_module_name: Option<String>§android_package: Option<String>§node_package_name: Option<String>§wasm_module_name: Option<String>§c_prefix: Option<String>§strip_module_prefix: boolImplementations§
Source§impl GeneratorConfig
impl GeneratorConfig
pub fn swift_module_name(&self) -> &str
pub fn android_package(&self) -> &str
pub fn node_package_name(&self) -> &str
pub fn wasm_module_name(&self) -> &str
pub fn c_prefix(&self) -> &str
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
Returns a duplicate 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 GeneratorConfig
impl Debug for GeneratorConfig
Source§impl Default for GeneratorConfig
impl Default for GeneratorConfig
Source§fn default() -> GeneratorConfig
fn default() -> GeneratorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeneratorConfig
impl<'de> Deserialize<'de> for GeneratorConfig
Source§fn 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
Auto Trait Implementations§
impl Freeze for GeneratorConfig
impl RefUnwindSafe for GeneratorConfig
impl Send for GeneratorConfig
impl Sync for GeneratorConfig
impl Unpin for GeneratorConfig
impl UnsafeUnpin for GeneratorConfig
impl UnwindSafe for GeneratorConfig
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