pub struct ToSolConfig { /* private fields */ }Available on crate feature
json-abi only.Expand description
Configuration for JsonAbi::to_sol.
Implementations§
Source§impl ToSolConfig
impl ToSolConfig
Sourcepub const fn new() -> ToSolConfig
pub const fn new() -> ToSolConfig
Creates a new configuration with default settings.
Sourcepub const fn print_constructors(self, yes: bool) -> ToSolConfig
pub const fn print_constructors(self, yes: bool) -> ToSolConfig
Sets whether to print constructors. Default: false.
Sourcepub const fn enums_as_udvt(self, yes: bool) -> ToSolConfig
pub const fn enums_as_udvt(self, yes: bool) -> ToSolConfig
Sets whether to print enums as user-defined value types (UDVTs) instead of uint8.
Default: true.
Sourcepub const fn for_sol_macro(self, yes: bool) -> ToSolConfig
pub const fn for_sol_macro(self, yes: bool) -> ToSolConfig
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
Source§impl Default for ToSolConfig
impl Default for ToSolConfig
Source§fn default() -> ToSolConfig
fn default() -> ToSolConfig
Returns the “default value” for a type. Read more
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 3 bytes