pub struct Config {
pub gen_name_for_id: bool,
pub deserializable_functions: bool,
pub impl_debug: bool,
pub impl_from_type: bool,
pub impl_from_enum: bool,
pub impl_serde: bool,
}Expand description
Generation configuration.
Fields§
§gen_name_for_id: boolEmit name_for_id(id) -> Option<&'static str> in the common module.
deserializable_functions: boolAlso implement Deserializable for function types (useful for servers).
impl_debug: boolDerive Debug on all generated types.
impl_from_type: boolEmit From<types::Foo> for enums::Bar impls.
impl_from_enum: boolEmit TryFrom<enums::Bar> for types::Foo impls.
impl_serde: boolDerive serde::{Serialize, Deserialize} on all types.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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