id

Function id 

Source
pub fn id() -> Principal
Expand description

Returns the principal of the current module.

This is a shorthand for ic_cdk::api::canister_self, kept for readability and to align with the concise naming convention used our helpers.

§Example

let current_module = core::ic::id();