Expand description
Shared type wrappers and aliases used across the ops and endpoint layers.
These helpers centralize candid-friendly structs plus bounded/principal
utilities so consumers can use canic::core::types::* without reaching into
submodules.
Re-exports§
pub use canic_cdk as cdk;pub use canic_utils as utils;
Macros§
- impl_
storable_ bounded - Implement
Storablewith a bounded size guarantee. - impl_
storable_ unbounded - Implement
Storablewithout a size bound.
Structs§
- Account
- Account
- Bounded
String - BoundedString
- ByteBuf
- Wrapper around
Vec<u8>to serialize and deserialize efficiently. - Cycles
- Cycles
Thin wrapper around
Natthat carries helper traits and serializers for arithmetic on cycle balances. - Int
- Nat
- Page
Request - PageRequest Common pagination envelope to avoid passing raw integers around.
- Principal
- Generic ID on Internet Computer.
- Ulid
- Ulid
A Candid-safe wrapper around
ulid::Ulid. - Wasm
Module - WasmModule Holds a reference to embedded WASM bytes and exposes helper inspectors.