Add rustdoc comments

This commit is contained in:
bitfl0wer 2023-08-26 19:41:00 +02:00
parent 9130562790
commit de3ccd7504
No known key found for this signature in database
GPG Key ID: 0ACD574FCF5226CF
7 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,4 @@
//! All of the API's endpoints.
pub use channels::messages::*;
pub use guilds::*;
pub use invites::*;

View File

@ -1,3 +1,4 @@
//! Contains all the errors that can be returned by the library.
use custom_error::custom_error;
use reqwest::Error;

View File

@ -1,3 +1,5 @@
//! Gateway connection, communication and handling, as well as object caching and updating.
use crate::errors::GatewayError;
use crate::gateway::events::Events;
use crate::types::{

View File

@ -1,3 +1,5 @@
//! Instance and ChorusUser objects.
use std::cell::RefCell;
use std::collections::HashMap;
use std::fmt;

View File

@ -1,3 +1,7 @@
//! A library for interacting with one or multiple Spacebar-compatible APIs and Gateways.
//!
//! # About
//!Chorus is a Rust library that allows developers to interact with multiple Spacebar-compatible APIs and Gateways simultaneously. The library provides a simple and efficient way to communicate with these services, making it easier for developers to build applications that rely on them. Chorus is open-source and welcomes contributions from the community.
#![allow(clippy::module_inception)]
use url::{ParseError, Url};

View File

@ -1,3 +1,5 @@
//! Ratelimiter and request handling functionality.
use std::collections::HashMap;
use log::{self, debug};

View File

@ -1,3 +1,5 @@
//! All the types, entities, events and interfaces of the Spacebar API.
pub use config::*;
pub use entities::*;
pub use errors::*;