pub struct ToSolConfig { /* private fields */ }
Expand description
Configuration for JsonAbi::to_sol
.
Implementations§
Source§impl ToSolConfig
impl ToSolConfig
Sourcepub const fn print_constructors(self, yes: bool) -> Self
pub const fn print_constructors(self, yes: bool) -> Self
Sets whether to print constructors. Default: false
.
Sourcepub const fn enums_as_udvt(self, yes: bool) -> Self
pub const fn enums_as_udvt(self, yes: bool) -> Self
Sets whether to print enum
s as user-defined value types (UDVTs) instead of uint8
.
Default: true
.
Sourcepub const fn for_sol_macro(self, yes: bool) -> Self
pub const fn for_sol_macro(self, yes: bool) -> Self
Sets whether to normalize the output for the sol!
macro. Default: false
.
Trait Implementations§
Source§impl Clone for ToSolConfig
impl Clone for ToSolConfig
Source§fn clone(&self) -> ToSolConfig
fn clone(&self) -> ToSolConfig
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 Debug for ToSolConfig
impl Debug for ToSolConfig
Auto Trait Implementations§
impl Freeze for ToSolConfig
impl RefUnwindSafe for ToSolConfig
impl Send for ToSolConfig
impl Sync for ToSolConfig
impl Unpin for ToSolConfig
impl UnwindSafe for ToSolConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)