Hey guys, here’s a problem, I’m trying to implement cross-canister calls using rust’s pub-sub pattern, but this line of code keeps having problems:
let return_result:Result<Vec, (ic_cdk::api::call::RejectionCode, String)> = ic_cdk:. call(publisher_id, “create_tensor_and_run_model”, (max_tokens,token_ids)).await;
Error message reported as:
the trait bound
for<'a> std::vec::Vec<i64>. ArgumentDecoder<'a>
is not satisfied
the following other types implement traitArgumentDecoder<'a>
.
()
(A, B)
(A, B, C)
(A, B, C, D)
(A, B, C, D, E)
(A, B, C, D, E, F)
(a, b, c, d, e, f, g)
(A, B, C, D, E, F, G, H)
and 9 othersrustcClick for full compiler diagnostic
call.rs(389, 36): required by a bound inic_cdk::call
where max_tokens is of type u8 and token_ids is of type Vec <i64 .