pub struct Getter {
pub name: String,
pub selector: [u8; 4],
pub inputs: Vec<String>,
pub outputs: Vec<String>,
}Expand description
One view/pure function of an ABI, as far as a getter needs.
Fields§
§name: StringFunction name.
selector: [u8; 4]keccak256("name(t1,t2)")[..4].
inputs: Vec<String>Canonical input types (address, uint256, …).
outputs: Vec<String>Canonical output types.
Trait Implementations§
impl Eq for Getter
impl StructuralPartialEq for Getter
Auto Trait Implementations§
impl Freeze for Getter
impl RefUnwindSafe for Getter
impl Send for Getter
impl Sync for Getter
impl Unpin for Getter
impl UnsafeUnpin for Getter
impl UnwindSafe for Getter
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