Struct typify_impl::TypeSpaceSettings
source · [−]pub struct TypeSpaceSettings { /* private fields */ }
Expand description
Settings that alter type generation.
Implementations
sourceimpl TypeSpaceSettings
impl TypeSpaceSettings
sourcepub fn with_type_mod<S: AsRef<str>>(&mut self, type_mod: S) -> &mut Self
pub fn with_type_mod<S: AsRef<str>>(&mut self, type_mod: S) -> &mut Self
Set the name of the path prefix for types defined in this TypeSpace.
sourcepub fn with_derive(&mut self, derive: String) -> &mut Self
pub fn with_derive(&mut self, derive: String) -> &mut Self
Add an additional derive macro to apply to all defined types.
pub fn with_struct_builder(&mut self, struct_builder: bool) -> &mut Self
Trait Implementations
sourceimpl Clone for TypeSpaceSettings
impl Clone for TypeSpaceSettings
sourcefn clone(&self) -> TypeSpaceSettings
fn clone(&self) -> TypeSpaceSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TypeSpaceSettings
impl Debug for TypeSpaceSettings
sourceimpl Default for TypeSpaceSettings
impl Default for TypeSpaceSettings
sourcefn default() -> TypeSpaceSettings
fn default() -> TypeSpaceSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TypeSpaceSettings
impl Send for TypeSpaceSettings
impl Sync for TypeSpaceSettings
impl Unpin for TypeSpaceSettings
impl UnwindSafe for TypeSpaceSettings
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