junobuild_utils/serializers/
types.rs

1use candid::Principal as CandidPrincipal;
2
3/// Represents a wrapper around the `candid::Principal` type.
4///
5/// This struct is designed to encapsulate a Candid Principal, allowing for
6/// integration and usage within Juno hooks contexts.
7///
8/// # Fields
9/// - `value`: The `Principal` this struct wraps.
10pub struct DocDataPrincipal {
11    pub value: CandidPrincipal,
12}
13
14/// Represents a large integer value for document data, particularly useful for interacting with
15/// languages or environments that support large numeric types, such as the `bigint` in JavaScript.
16///
17/// # Fields
18/// - `value`: A `u64` integer representing the large numeric value encapsulated by this struct.
19pub struct DocDataBigInt {
20    pub value: u64,
21}