pub fn caller() -> PrincipalExpand description
Returns the principal of the caller that invoked the current module.
This is a shorthand for ic_cdk::api::msg_caller,
kept for readability and to align with the concise naming convention
used our helpers.
§Example
ⓘ
let user = core::ic::caller();