Expand description
This module provides functions to serialize and deserialize types under std::sync::Arc shared reference type.
Examples
use candid::{CandidType, Deserialize};
use serde_bytes::ByteBuf;
use std::sync::Arc;
#[derive(CandidType, Deserialize, PartialEq)]
struct ArcBytes(#[serde(with = "candid::arc")] Arc<ByteBuf>);