Struct progenitor_impl::GenerationSettings
source · pub struct GenerationSettings { /* private fields */ }Implementations§
source§impl GenerationSettings
impl GenerationSettings
pub fn new() -> Self
pub fn with_interface(&mut self, interface: InterfaceStyle) -> &mut Self
pub fn with_tag(&mut self, tag: TagStyle) -> &mut Self
pub fn with_inner_type(&mut self, inner_type: TokenStream) -> &mut Self
pub fn with_pre_hook(&mut self, pre_hook: TokenStream) -> &mut Self
pub fn with_post_hook(&mut self, post_hook: TokenStream) -> &mut Self
pub fn with_derive(&mut self, derive: impl ToString) -> &mut Self
pub fn with_patch<S: AsRef<str>>( &mut self, type_name: S, patch: &TypePatch ) -> &mut Self
pub fn with_replacement<TS: ToString, RS: ToString, I: Iterator<Item = TypeImpl>>( &mut self, type_name: TS, replace_name: RS, impls: I ) -> &mut Self
pub fn with_conversion<S: ToString, I: Iterator<Item = TypeImpl>>( &mut self, schema: SchemaObject, type_name: S, impls: I ) -> &mut Self
Trait Implementations§
source§impl Clone for GenerationSettings
impl Clone for GenerationSettings
source§fn clone(&self) -> GenerationSettings
fn clone(&self) -> GenerationSettings
Returns a copy 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 Default for GenerationSettings
impl Default for GenerationSettings
source§fn default() -> GenerationSettings
fn default() -> GenerationSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GenerationSettings
impl !Send for GenerationSettings
impl !Sync for GenerationSettings
impl Unpin for GenerationSettings
impl UnwindSafe for GenerationSettings
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