Crate canic_types

Crate canic_types 

Source
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 Storable with a bounded size guarantee.
impl_storable_unbounded
Implement Storable without a size bound.

Structs§

Account
Account
BoundedString
BoundedString
ByteBuf
Wrapper around Vec<u8> to serialize and deserialize efficiently.
Cycles
Cycles Thin wrapper around Nat that carries helper traits and serializers for arithmetic on cycle balances.
Int
Nat
Principal
Generic ID on Internet Computer.
Ulid
Ulid A Candid-safe wrapper around ulid::Ulid.
WasmModule
WasmModule Holds a reference to embedded WASM bytes and exposes helper inspectors.

Constants§

BC
DEFAULT_SUBACCOUNT
KC
Constants Cycle unit shorthands for configs and logs
MC
QC
TC

Type Aliases§

BoundedString8
BoundedString16
BoundedString32
BoundedString64
BoundedString128
BoundedString256
Subaccount
Subaccount