1#![doc = include_str!("../README.md")]
2
3pub mod account;
4pub mod attachment;
5pub mod authentication;
6pub mod autumn;
7pub mod bot;
8pub mod channel;
9pub mod core;
10pub mod data;
11pub mod embed;
12pub mod emoji;
13pub mod error;
14pub mod event;
15pub mod invite;
16pub mod member;
17pub mod message;
18pub mod mfa;
19pub mod onboarding;
20pub mod permission;
21pub mod report;
22pub mod server;
23pub mod session;
24pub mod snapshot;
25pub mod stats;
26pub mod strike;
27pub mod user;
28pub mod voice;
29pub mod webhook;
30
31#[deprecated = "Please import `rive_models::error::ApiError` instead"]
32pub use error::ApiError;
33
34macro_rules! impl_serde_bitflags(
35 ($type:ident) => {
36 impl serde::Serialize for $type {
37 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
38 where
39 S: serde::Serializer,
40 {
41 serializer.serialize_u64(self.bits())
42 }
43 }
44
45 impl<'de> serde::Deserialize<'de> for $type {
46 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
47 Ok(Self::from_bits_truncate(u64::deserialize(deserializer)?))
48 }
49 }
50 }
51);
52pub(crate) use impl_serde_bitflags;