pub struct CairoFunction {
pub name: String,
pub state_mutability: StateMutability,
pub inputs: Vec<(String, AbiTypeAny)>,
pub output: Option<AbiTypeAny>,
}
Fields§
§name: String
§state_mutability: StateMutability
§inputs: Vec<(String, AbiTypeAny)>
§output: Option<AbiTypeAny>
Implementations§
Source§impl CairoFunction
impl CairoFunction
Sourcepub fn new(
abi_name: &str,
state_mutability: StateMutability,
inputs: &[AbiNamedMember],
outputs: &Vec<AbiOutput>,
) -> CairoFunction
pub fn new( abi_name: &str, state_mutability: StateMutability, inputs: &[AbiNamedMember], outputs: &Vec<AbiOutput>, ) -> CairoFunction
Initializes a new instance from the abi name and it’s members.
Trait Implementations§
Source§impl Clone for CairoFunction
impl Clone for CairoFunction
Source§fn clone(&self) -> CairoFunction
fn clone(&self) -> CairoFunction
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 moreAuto Trait Implementations§
impl Freeze for CairoFunction
impl RefUnwindSafe for CairoFunction
impl Send for CairoFunction
impl Sync for CairoFunction
impl Unpin for CairoFunction
impl UnwindSafe for CairoFunction
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