Trait ic_kit::interfaces::Method [−][src]
pub trait Method {
type Arguments: ArgumentEncoder;
type Response: for<'de> ArgumentDecoder<'de>;
const NAME: &'static str;
fn perform(
id: Principal,
args: Self::Arguments
) -> CallResponse<Self::Response> { ... }
fn perform_with_payment(
id: Principal,
args: Self::Arguments,
cycles: u64
) -> CallResponse<Self::Response> { ... }
}Expand description
A method description.