method Principal.dynUser
The id a flag hashes for by: .User ("" for an anonymous caller).
Example:
fn main() io {
print("[{Principal.User("ann", [], Map.new(), false, none).dynUser()}] [{Principal.Anonymous.dynUser()}]")
}Output
[ann] []
pub(api) fn dynUser() -> strComplexity. O(1).
Since. 1.0.0-beta
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/dynconf.oxl:255