34 lines
990 B
Rust
34 lines
990 B
Rust
#![doc(html_favicon_url = "https://www.ruma.io/favicon.ico")]
|
|
#![doc(html_logo_url = "https://www.ruma.io/images/logo.png")]
|
|
//! (De)serializable types for the [Matrix Server-Server API][federation-api].
|
|
//! These types are used by server code.
|
|
//!
|
|
//! [federation-api]: https://matrix.org/docs/spec/server_server/r0.1.4.html
|
|
|
|
#![warn(missing_docs)]
|
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
|
|
|
mod serde;
|
|
|
|
pub mod authorization;
|
|
pub mod backfill;
|
|
pub mod device;
|
|
pub mod directory;
|
|
pub mod discovery;
|
|
pub mod event;
|
|
pub mod keys;
|
|
#[cfg(feature = "unstable-pre-spec")]
|
|
pub mod knock;
|
|
pub mod membership;
|
|
pub mod openid;
|
|
pub mod query;
|
|
pub mod thirdparty;
|
|
pub mod transactions;
|
|
|
|
// Wrapper around `Box<str>` that cannot be used in a meaningful way outside of
|
|
// this crate. Used for string enums because their `_Custom` variant can't be
|
|
// truly private (only `#[doc(hidden)]`).
|
|
#[doc(hidden)]
|
|
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
pub struct PrivOwnedStr(Box<str>);
|