Function ic_cdk::api::call::result

source ยท
pub fn result<T: for<'a> ArgumentDecoder<'a>>() -> Result<T, String>
Expand description

Returns a result that maps over the call

It will be Ok(T) if the call succeeded (with T being the arg_data), and reject_message() if it failed.