Skip to main content

xmtp_common/
types.rs

1//! Common Primitive Types that may be shared across all XMTP Crates
2//! Types should not have any dependencies other than std and std-adjacent crates (like bytes)
3
4pub type Address = String;
5pub type InboxId = String;
6pub type WalletAddress = String;
7
8/// The three values used to match a content codec.
9#[derive(Clone, Debug, PartialEq, Eq, Hash)]
10pub struct ContentTypeId {
11    pub authority_id: String,
12    pub type_id: String,
13    pub version_major: u32,
14}