pub struct BinderTypeMapping { /* private fields */ }Expand description
The context to map solidity type to target strong type language.
you can read mapping data from any serde compatibable data formats.
Implementations§
Source§impl BinderTypeMapping
impl BinderTypeMapping
Sourcepub fn abi_type_mapping(&mut self, abi_type: &Type) -> Option<&str>
pub fn abi_type_mapping(&mut self, abi_type: &Type) -> Option<&str>
Mapping abi type to target language type.
Sourcepub fn rt_type_mapping(&self, rt_type: &str) -> Option<&str>
pub fn rt_type_mapping(&self, rt_type: &str) -> Option<&str>
Mapping binder-specific runtime type into target language type.
runtime Type is the runtime type of the target web3 framework that must be known to generate code.
Trait Implementations§
Source§impl Debug for BinderTypeMapping
impl Debug for BinderTypeMapping
Source§impl<'de> Deserialize<'de> for BinderTypeMapping
impl<'de> Deserialize<'de> for BinderTypeMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BinderTypeMapping> for RustBinder
Available on crate feature rustgen only.
impl From<BinderTypeMapping> for RustBinder
Available on crate feature
rustgen only.Source§fn from(value: BinderTypeMapping) -> Self
fn from(value: BinderTypeMapping) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinderTypeMapping
impl RefUnwindSafe for BinderTypeMapping
impl Send for BinderTypeMapping
impl Sync for BinderTypeMapping
impl Unpin for BinderTypeMapping
impl UnwindSafe for BinderTypeMapping
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