From b8ba92cf0793e3c003af7699b5876d832f0b933a Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Tue, 30 Jan 2024 17:19:34 +0100 Subject: [PATCH] Include license header everywhere --- chorus-macros/src/lib.rs | 4 ++++ examples/gateway_observers.rs | 4 ++++ examples/gateway_simple.rs | 4 ++++ examples/instance.rs | 4 ++++ examples/login.rs | 4 ++++ src/api/auth/login.rs | 4 ++++ src/api/auth/mod.rs | 4 ++++ src/api/auth/register.rs | 4 ++++ src/api/channels/channels.rs | 4 ++++ src/api/channels/messages.rs | 4 ++++ src/api/channels/mod.rs | 4 ++++ src/api/channels/permissions.rs | 4 ++++ src/api/channels/reactions.rs | 4 ++++ src/api/guilds/guilds.rs | 4 ++++ src/api/guilds/member.rs | 4 ++++ src/api/guilds/messages.rs | 4 ++++ src/api/guilds/mod.rs | 4 ++++ src/api/guilds/roles.rs | 4 ++++ src/api/invites/mod.rs | 4 ++++ src/api/mod.rs | 4 ++++ src/api/policies/instance/instance.rs | 4 ++++ src/api/policies/instance/mod.rs | 4 ++++ src/api/policies/mod.rs | 4 ++++ src/api/users/channels.rs | 4 ++++ src/api/users/guilds.rs | 4 ++++ src/api/users/mod.rs | 4 ++++ src/api/users/relationships.rs | 4 ++++ src/api/users/users.rs | 4 ++++ src/errors.rs | 4 ++++ src/gateway/backends/mod.rs | 4 ++++ src/gateway/backends/tungstenite.rs | 4 ++++ src/gateway/backends/wasm.rs | 4 ++++ src/gateway/events.rs | 4 ++++ src/gateway/gateway.rs | 4 ++++ src/gateway/handle.rs | 4 ++++ src/gateway/heartbeat.rs | 4 ++++ src/gateway/message.rs | 4 ++++ src/gateway/mod.rs | 4 ++++ src/instance.rs | 4 ++++ src/lib.rs | 4 ++++ src/ratelimiter.rs | 4 ++++ src/types/config/mod.rs | 4 ++++ src/types/config/types/api_configuration.rs | 4 ++++ src/types/config/types/cdn_configuration.rs | 4 ++++ src/types/config/types/defaults_configuration.rs | 4 ++++ src/types/config/types/domains_configuration.rs | 4 ++++ src/types/config/types/email_configuration.rs | 4 ++++ src/types/config/types/endpoint_configuration.rs | 4 ++++ src/types/config/types/external_tokens_configuration.rs | 4 ++++ src/types/config/types/general_configuration.rs | 4 ++++ src/types/config/types/gif_configuration.rs | 4 ++++ src/types/config/types/guild_configuration.rs | 4 ++++ src/types/config/types/kafka_configuration.rs | 4 ++++ src/types/config/types/limit_configuration.rs | 4 ++++ src/types/config/types/login_configuration.rs | 4 ++++ src/types/config/types/metrics_configuration.rs | 4 ++++ src/types/config/types/mod.rs | 4 ++++ src/types/config/types/password_reset_configuration.rs | 4 ++++ src/types/config/types/rabbit_mq_configuration.rs | 4 ++++ src/types/config/types/region_configuration.rs | 4 ++++ src/types/config/types/register_configuration.rs | 4 ++++ src/types/config/types/security_configuration.rs | 4 ++++ src/types/config/types/sentry_configuration.rs | 4 ++++ src/types/config/types/subconfigs/client/mod.rs | 4 ++++ src/types/config/types/subconfigs/defaults/guild.rs | 4 ++++ src/types/config/types/subconfigs/defaults/mod.rs | 4 ++++ src/types/config/types/subconfigs/defaults/user.rs | 4 ++++ src/types/config/types/subconfigs/email/mailgun.rs | 4 ++++ src/types/config/types/subconfigs/email/mailjet.rs | 4 ++++ src/types/config/types/subconfigs/email/mod.rs | 4 ++++ src/types/config/types/subconfigs/email/sendgrid.rs | 4 ++++ src/types/config/types/subconfigs/email/smtp.rs | 4 ++++ src/types/config/types/subconfigs/guild/autojoin.rs | 4 ++++ src/types/config/types/subconfigs/guild/discovery.rs | 4 ++++ src/types/config/types/subconfigs/guild/mod.rs | 4 ++++ src/types/config/types/subconfigs/kafka/mod.rs | 4 ++++ src/types/config/types/subconfigs/limits/channel.rs | 4 ++++ src/types/config/types/subconfigs/limits/global.rs | 4 ++++ src/types/config/types/subconfigs/limits/guild.rs | 4 ++++ src/types/config/types/subconfigs/limits/message.rs | 4 ++++ src/types/config/types/subconfigs/limits/mod.rs | 4 ++++ src/types/config/types/subconfigs/limits/ratelimits/auth.rs | 4 ++++ src/types/config/types/subconfigs/limits/ratelimits/mod.rs | 4 ++++ src/types/config/types/subconfigs/limits/ratelimits/route.rs | 4 ++++ src/types/config/types/subconfigs/limits/rates.rs | 4 ++++ src/types/config/types/subconfigs/limits/user.rs | 4 ++++ src/types/config/types/subconfigs/mod.rs | 4 ++++ src/types/config/types/subconfigs/region/mod.rs | 4 ++++ src/types/config/types/subconfigs/register/date_of_birth.rs | 4 ++++ src/types/config/types/subconfigs/register/email.rs | 4 ++++ src/types/config/types/subconfigs/register/mod.rs | 4 ++++ src/types/config/types/subconfigs/register/password.rs | 4 ++++ src/types/config/types/subconfigs/security/captcha.rs | 4 ++++ src/types/config/types/subconfigs/security/mod.rs | 4 ++++ src/types/config/types/subconfigs/security/twofactor.rs | 4 ++++ src/types/config/types/template_configuration.rs | 4 ++++ src/types/entities/application.rs | 4 ++++ src/types/entities/attachment.rs | 4 ++++ src/types/entities/audit_log.rs | 4 ++++ src/types/entities/auto_moderation.rs | 4 ++++ src/types/entities/channel.rs | 4 ++++ src/types/entities/config.rs | 4 ++++ src/types/entities/emoji.rs | 4 ++++ src/types/entities/guild.rs | 4 ++++ src/types/entities/guild_member.rs | 4 ++++ src/types/entities/integration.rs | 4 ++++ src/types/entities/invite.rs | 4 ++++ src/types/entities/message.rs | 4 ++++ src/types/entities/mod.rs | 4 ++++ src/types/entities/ratelimits.rs | 4 ++++ src/types/entities/relationship.rs | 4 ++++ src/types/entities/role.rs | 4 ++++ src/types/entities/security_key.rs | 4 ++++ src/types/entities/stage_instance.rs | 4 ++++ src/types/entities/sticker.rs | 4 ++++ src/types/entities/team.rs | 4 ++++ src/types/entities/template.rs | 4 ++++ src/types/entities/user.rs | 4 ++++ src/types/entities/user_settings.rs | 4 ++++ src/types/entities/voice_state.rs | 4 ++++ src/types/entities/webhook.rs | 4 ++++ src/types/errors.rs | 4 ++++ src/types/events/application.rs | 4 ++++ src/types/events/auto_moderation.rs | 4 ++++ src/types/events/call.rs | 4 ++++ src/types/events/channel.rs | 4 ++++ src/types/events/guild.rs | 4 ++++ src/types/events/heartbeat.rs | 4 ++++ src/types/events/hello.rs | 4 ++++ src/types/events/identify.rs | 4 ++++ src/types/events/integration.rs | 4 ++++ src/types/events/interaction.rs | 4 ++++ src/types/events/invite.rs | 4 ++++ src/types/events/lazy_request.rs | 4 ++++ src/types/events/message.rs | 4 ++++ src/types/events/mod.rs | 4 ++++ src/types/events/passive_update.rs | 4 ++++ src/types/events/presence.rs | 4 ++++ src/types/events/ready.rs | 4 ++++ src/types/events/relationship.rs | 4 ++++ src/types/events/request_members.rs | 4 ++++ src/types/events/resume.rs | 4 ++++ src/types/events/session.rs | 4 ++++ src/types/events/stage_instance.rs | 4 ++++ src/types/events/thread.rs | 4 ++++ src/types/events/user.rs | 4 ++++ src/types/events/voice.rs | 4 ++++ src/types/events/webhooks.rs | 4 ++++ src/types/events/webrtc/identify.rs | 4 ++++ src/types/events/webrtc/mod.rs | 4 ++++ src/types/events/webrtc/ready.rs | 4 ++++ src/types/interfaces/activity.rs | 4 ++++ src/types/interfaces/connected_account.rs | 4 +++- src/types/interfaces/guild_welcome_screen.rs | 4 ++++ src/types/interfaces/interaction.rs | 4 ++++ src/types/interfaces/mod.rs | 4 ++++ src/types/interfaces/status.rs | 4 ++++ src/types/mod.rs | 4 ++++ src/types/schema/apierror.rs | 4 ++++ src/types/schema/auth.rs | 4 ++++ src/types/schema/channel.rs | 4 ++++ src/types/schema/guild.rs | 4 ++++ src/types/schema/message.rs | 4 ++++ src/types/schema/mod.rs | 4 ++++ src/types/schema/relationship.rs | 4 ++++ src/types/schema/role.rs | 4 ++++ src/types/schema/user.rs | 4 ++++ src/types/utils/jwt.rs | 4 ++++ src/types/utils/mod.rs | 4 ++++ src/types/utils/regexes.rs | 4 ++++ src/types/utils/rights.rs | 4 ++++ src/types/utils/snowflake.rs | 4 ++++ src/voice.rs | 4 ++++ tests/auth.rs | 4 ++++ tests/channels.rs | 4 ++++ tests/common/mod.rs | 4 ++++ tests/gateway.rs | 4 ++++ tests/guilds.rs | 4 ++++ tests/instance.rs | 4 ++++ tests/invites.rs | 4 ++++ tests/members.rs | 4 ++++ tests/messages.rs | 4 ++++ tests/ratelimit.rs | 4 ++++ tests/relationships.rs | 4 ++++ tests/roles.rs | 4 ++++ tests/types.rs | 4 ++++ tests/urlbundle.rs | 4 ++++ tests/user.rs | 4 ++++ tests/wasm.rs | 4 ++++ 189 files changed, 755 insertions(+), 1 deletion(-) diff --git a/chorus-macros/src/lib.rs b/chorus-macros/src/lib.rs index fd68df0..ba8f27e 100644 --- a/chorus-macros/src/lib.rs +++ b/chorus-macros/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use proc_macro::TokenStream; use quote::quote; use syn::{parse_macro_input, Data, DeriveInput, Field, Fields, FieldsNamed}; diff --git a/examples/gateway_observers.rs b/examples/gateway_observers.rs index a26ecfb..01dc854 100644 --- a/examples/gateway_observers.rs +++ b/examples/gateway_observers.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use async_trait::async_trait; use chorus::gateway::Gateway; use chorus::{ diff --git a/examples/gateway_simple.rs b/examples/gateway_simple.rs index 7a0d807..60d7000 100644 --- a/examples/gateway_simple.rs +++ b/examples/gateway_simple.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::time::Duration; use chorus::gateway::Gateway; diff --git a/examples/instance.rs b/examples/instance.rs index 2ec45a3..0bbdc17 100644 --- a/examples/instance.rs +++ b/examples/instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::instance::Instance; #[tokio::main(flavor = "current_thread")] diff --git a/examples/login.rs b/examples/login.rs index 144030b..016801f 100644 --- a/examples/login.rs +++ b/examples/login.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::instance::Instance; use chorus::types::LoginSchema; diff --git a/src/api/auth/login.rs b/src/api/auth/login.rs index ff99be8..7689af7 100644 --- a/src/api/auth/login.rs +++ b/src/api/auth/login.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::sync::{Arc, RwLock}; use reqwest::Client; diff --git a/src/api/auth/mod.rs b/src/api/auth/mod.rs index ae3b219..79c5c30 100644 --- a/src/api/auth/mod.rs +++ b/src/api/auth/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::sync::{Arc, RwLock}; pub use login::*; diff --git a/src/api/auth/register.rs b/src/api/auth/register.rs index aa0b483..deece4d 100644 --- a/src/api/auth/register.rs +++ b/src/api/auth/register.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::sync::{Arc, RwLock}; use reqwest::Client; diff --git a/src/api/channels/channels.rs b/src/api/channels/channels.rs index 9560d74..6c41576 100644 --- a/src/api/channels/channels.rs +++ b/src/api/channels/channels.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/channels/messages.rs b/src/api/channels/messages.rs index 3ee5228..feabc37 100644 --- a/src/api/channels/messages.rs +++ b/src/api/channels/messages.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use http::header::CONTENT_DISPOSITION; use http::HeaderMap; use reqwest::{multipart, Client}; diff --git a/src/api/channels/mod.rs b/src/api/channels/mod.rs index b72861e..73ae99c 100644 --- a/src/api/channels/mod.rs +++ b/src/api/channels/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use channels::*; pub use messages::*; pub use permissions::*; diff --git a/src/api/channels/permissions.rs b/src/api/channels/permissions.rs index 5360890..03465b8 100644 --- a/src/api/channels/permissions.rs +++ b/src/api/channels/permissions.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/channels/reactions.rs b/src/api/channels/reactions.rs index 94d3087..b7c42e1 100644 --- a/src/api/channels/reactions.rs +++ b/src/api/channels/reactions.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::{ errors::ChorusResult, instance::ChorusUser, diff --git a/src/api/guilds/guilds.rs b/src/api/guilds/guilds.rs index b433c84..d5d321e 100644 --- a/src/api/guilds/guilds.rs +++ b/src/api/guilds/guilds.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::from_str; use serde_json::to_string; diff --git a/src/api/guilds/member.rs b/src/api/guilds/member.rs index 885ddf9..0037ec7 100644 --- a/src/api/guilds/member.rs +++ b/src/api/guilds/member.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use crate::{ diff --git a/src/api/guilds/messages.rs b/src/api/guilds/messages.rs index 60fd4e3..31a62e1 100644 --- a/src/api/guilds/messages.rs +++ b/src/api/guilds/messages.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::errors::ChorusResult; use crate::instance::ChorusUser; use crate::types::{Guild, Message, MessageSearchQuery, Snowflake}; diff --git a/src/api/guilds/mod.rs b/src/api/guilds/mod.rs index f1fa039..dcd2552 100644 --- a/src/api/guilds/mod.rs +++ b/src/api/guilds/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use guilds::*; pub use messages::*; pub use roles::*; diff --git a/src/api/guilds/roles.rs b/src/api/guilds/roles.rs index f131367..6100a48 100644 --- a/src/api/guilds/roles.rs +++ b/src/api/guilds/roles.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/invites/mod.rs b/src/api/invites/mod.rs index 80b47d2..68f1417 100644 --- a/src/api/invites/mod.rs +++ b/src/api/invites/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/mod.rs b/src/api/mod.rs index ab3f9b9..963a9e4 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + //! All of the API's endpoints. pub use channels::messages::*; pub use guilds::*; diff --git a/src/api/policies/instance/instance.rs b/src/api/policies/instance/instance.rs index 4de5fd8..584db33 100644 --- a/src/api/policies/instance/instance.rs +++ b/src/api/policies/instance/instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde_json::from_str; use crate::errors::{ChorusError, ChorusResult}; diff --git a/src/api/policies/instance/mod.rs b/src/api/policies/instance/mod.rs index b3a9148..8cdb125 100644 --- a/src/api/policies/instance/mod.rs +++ b/src/api/policies/instance/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use instance::*; pub mod instance; diff --git a/src/api/policies/mod.rs b/src/api/policies/mod.rs index 1d5ea99..377ec30 100644 --- a/src/api/policies/mod.rs +++ b/src/api/policies/mod.rs @@ -1 +1,5 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod instance; diff --git a/src/api/users/channels.rs b/src/api/users/channels.rs index 330b3e3..15d779c 100644 --- a/src/api/users/channels.rs +++ b/src/api/users/channels.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/users/guilds.rs b/src/api/users/guilds.rs index 6ffcdfc..aac2f7a 100644 --- a/src/api/users/guilds.rs +++ b/src/api/users/guilds.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/users/mod.rs b/src/api/users/mod.rs index ba789ba..fea9f69 100644 --- a/src/api/users/mod.rs +++ b/src/api/users/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use channels::*; pub use guilds::*; pub use relationships::*; diff --git a/src/api/users/relationships.rs b/src/api/users/relationships.rs index 4f9602c..3d68603 100644 --- a/src/api/users/relationships.rs +++ b/src/api/users/relationships.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use reqwest::Client; use serde_json::to_string; diff --git a/src/api/users/users.rs b/src/api/users/users.rs index 0f31d6f..f7b0f3b 100644 --- a/src/api/users/users.rs +++ b/src/api/users/users.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::sync::{Arc, RwLock}; use reqwest::Client; diff --git a/src/errors.rs b/src/errors.rs index c20ac64..8cb3e78 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + //! Contains all the errors that can be returned by the library. use custom_error::custom_error; diff --git a/src/gateway/backends/mod.rs b/src/gateway/backends/mod.rs index edb5dc9..6df070d 100644 --- a/src/gateway/backends/mod.rs +++ b/src/gateway/backends/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + #[cfg(all(not(target_arch = "wasm32"), feature = "client"))] pub mod tungstenite; #[cfg(all(not(target_arch = "wasm32"), feature = "client"))] diff --git a/src/gateway/backends/tungstenite.rs b/src/gateway/backends/tungstenite.rs index 5184329..fe537d3 100644 --- a/src/gateway/backends/tungstenite.rs +++ b/src/gateway/backends/tungstenite.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use futures_util::{ stream::{SplitSink, SplitStream}, StreamExt, diff --git a/src/gateway/backends/wasm.rs b/src/gateway/backends/wasm.rs index e9927ac..83f4b37 100644 --- a/src/gateway/backends/wasm.rs +++ b/src/gateway/backends/wasm.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use futures_util::{ stream::{SplitSink, SplitStream}, StreamExt, diff --git a/src/gateway/events.rs b/src/gateway/events.rs index fdb7b25..cf074bd 100644 --- a/src/gateway/events.rs +++ b/src/gateway/events.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use super::*; use crate::types; diff --git a/src/gateway/gateway.rs b/src/gateway/gateway.rs index 684b9d2..3011857 100644 --- a/src/gateway/gateway.rs +++ b/src/gateway/gateway.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::time::Duration; use futures_util::{SinkExt, StreamExt}; diff --git a/src/gateway/handle.rs b/src/gateway/handle.rs index bc64077..4ce725d 100644 --- a/src/gateway/handle.rs +++ b/src/gateway/handle.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use futures_util::SinkExt; use log::*; diff --git a/src/gateway/heartbeat.rs b/src/gateway/heartbeat.rs index e6991f3..7c77914 100644 --- a/src/gateway/heartbeat.rs +++ b/src/gateway/heartbeat.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use futures_util::SinkExt; use log::*; diff --git a/src/gateway/message.rs b/src/gateway/message.rs index 2c12e48..f484d35 100644 --- a/src/gateway/message.rs +++ b/src/gateway/message.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types; use super::*; diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index c5f415e..01f2163 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use async_trait::async_trait; pub mod backends; diff --git a/src/instance.rs b/src/instance.rs index cd5f6b2..d78e738 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + //! Instance and ChorusUser objects. use std::collections::HashMap; diff --git a/src/lib.rs b/src/lib.rs index 1bbeeef..d4f8c21 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + /*! Chorus combines all the required functionalities of a user-centric Spacebar library into one package. The library handles various aspects on your behalf, such as rate limiting, authentication and maintaining diff --git a/src/ratelimiter.rs b/src/ratelimiter.rs index f6a7c26..5e69d95 100644 --- a/src/ratelimiter.rs +++ b/src/ratelimiter.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + //! Ratelimiter and request handling functionality. use std::collections::HashMap; diff --git a/src/types/config/mod.rs b/src/types/config/mod.rs index 4a11c71..4419208 100644 --- a/src/types/config/mod.rs +++ b/src/types/config/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use serde_json::{Map, Value}; diff --git a/src/types/config/types/api_configuration.rs b/src/types/config/types/api_configuration.rs index 2d617fe..2543d9c 100644 --- a/src/types/config/types/api_configuration.rs +++ b/src/types/config/types/api_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] diff --git a/src/types/config/types/cdn_configuration.rs b/src/types/config/types/cdn_configuration.rs index 5c76273..c0045b2 100644 --- a/src/types/config/types/cdn_configuration.rs +++ b/src/types/config/types/cdn_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/defaults_configuration.rs b/src/types/config/types/defaults_configuration.rs index c2b67c2..e6e0867 100644 --- a/src/types/config/types/defaults_configuration.rs +++ b/src/types/config/types/defaults_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::defaults::{guild::GuildDefaults, user::UserDefaults}; diff --git a/src/types/config/types/domains_configuration.rs b/src/types/config/types/domains_configuration.rs index 297b827..6e9218e 100644 --- a/src/types/config/types/domains_configuration.rs +++ b/src/types/config/types/domains_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, Eq, PartialEq, Hash, Clone, Debug)] diff --git a/src/types/config/types/email_configuration.rs b/src/types/config/types/email_configuration.rs index 954f4de..ffeb726 100644 --- a/src/types/config/types/email_configuration.rs +++ b/src/types/config/types/email_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::email::{ diff --git a/src/types/config/types/endpoint_configuration.rs b/src/types/config/types/endpoint_configuration.rs index b484791..0119cb2 100644 --- a/src/types/config/types/endpoint_configuration.rs +++ b/src/types/config/types/endpoint_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/external_tokens_configuration.rs b/src/types/config/types/external_tokens_configuration.rs index f417b2f..44e1313 100644 --- a/src/types/config/types/external_tokens_configuration.rs +++ b/src/types/config/types/external_tokens_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/general_configuration.rs b/src/types/config/types/general_configuration.rs index 450fd52..d49a6f8 100644 --- a/src/types/config/types/general_configuration.rs +++ b/src/types/config/types/general_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::utils::Snowflake; diff --git a/src/types/config/types/gif_configuration.rs b/src/types/config/types/gif_configuration.rs index 8644fb4..f0e1358 100644 --- a/src/types/config/types/gif_configuration.rs +++ b/src/types/config/types/gif_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/guild_configuration.rs b/src/types/config/types/guild_configuration.rs index 65897ea..af40b30 100644 --- a/src/types/config/types/guild_configuration.rs +++ b/src/types/config/types/guild_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::fmt::{Display, Formatter}; #[cfg(feature = "sqlx")] use std::io::Write; diff --git a/src/types/config/types/kafka_configuration.rs b/src/types/config/types/kafka_configuration.rs index 46d10b6..909dc03 100644 --- a/src/types/config/types/kafka_configuration.rs +++ b/src/types/config/types/kafka_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::kafka::KafkaBroker; diff --git a/src/types/config/types/limit_configuration.rs b/src/types/config/types/limit_configuration.rs index 44f888a..f322a30 100644 --- a/src/types/config/types/limit_configuration.rs +++ b/src/types/config/types/limit_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::limits::{ diff --git a/src/types/config/types/login_configuration.rs b/src/types/config/types/login_configuration.rs index a2b1039..83125e0 100644 --- a/src/types/config/types/login_configuration.rs +++ b/src/types/config/types/login_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/metrics_configuration.rs b/src/types/config/types/metrics_configuration.rs index 336ac84..98d3536 100644 --- a/src/types/config/types/metrics_configuration.rs +++ b/src/types/config/types/metrics_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/mod.rs b/src/types/config/types/mod.rs index 6ea2c03..a35b305 100644 --- a/src/types/config/types/mod.rs +++ b/src/types/config/types/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod api_configuration; pub mod cdn_configuration; pub mod defaults_configuration; diff --git a/src/types/config/types/password_reset_configuration.rs b/src/types/config/types/password_reset_configuration.rs index 4dddae9..d1c730e 100644 --- a/src/types/config/types/password_reset_configuration.rs +++ b/src/types/config/types/password_reset_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/rabbit_mq_configuration.rs b/src/types/config/types/rabbit_mq_configuration.rs index 2437055..c073fa0 100644 --- a/src/types/config/types/rabbit_mq_configuration.rs +++ b/src/types/config/types/rabbit_mq_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/region_configuration.rs b/src/types/config/types/region_configuration.rs index 078fa03..9e933a2 100644 --- a/src/types/config/types/region_configuration.rs +++ b/src/types/config/types/region_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::region::Region; diff --git a/src/types/config/types/register_configuration.rs b/src/types/config/types/register_configuration.rs index 4a20824..a4573bf 100644 --- a/src/types/config/types/register_configuration.rs +++ b/src/types/config/types/register_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::register::{ diff --git a/src/types/config/types/security_configuration.rs b/src/types/config/types/security_configuration.rs index caeb72c..0bd190f 100644 --- a/src/types/config/types/security_configuration.rs +++ b/src/types/config/types/security_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use base64::Engine; use rand::Fill; use serde::{Deserialize, Serialize}; diff --git a/src/types/config/types/sentry_configuration.rs b/src/types/config/types/sentry_configuration.rs index 99de4ff..e6e15df 100644 --- a/src/types/config/types/sentry_configuration.rs +++ b/src/types/config/types/sentry_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::ffi::OsString; use serde::{Deserialize, Serialize}; diff --git a/src/types/config/types/subconfigs/client/mod.rs b/src/types/config/types/subconfigs/client/mod.rs index 5d3d304..95aefdc 100644 --- a/src/types/config/types/subconfigs/client/mod.rs +++ b/src/types/config/types/subconfigs/client/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/defaults/guild.rs b/src/types/config/types/subconfigs/defaults/guild.rs index a709f82..8509fe5 100644 --- a/src/types/config/types/subconfigs/defaults/guild.rs +++ b/src/types/config/types/subconfigs/defaults/guild.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{ExplicitContentFilterLevel, MessageNotificationLevel}; diff --git a/src/types/config/types/subconfigs/defaults/mod.rs b/src/types/config/types/subconfigs/defaults/mod.rs index 56d877f..250738f 100644 --- a/src/types/config/types/subconfigs/defaults/mod.rs +++ b/src/types/config/types/subconfigs/defaults/mod.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod guild; pub mod user; diff --git a/src/types/config/types/subconfigs/defaults/user.rs b/src/types/config/types/subconfigs/defaults/user.rs index 635d6d4..d7dc7b3 100644 --- a/src/types/config/types/subconfigs/defaults/user.rs +++ b/src/types/config/types/subconfigs/defaults/user.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/email/mailgun.rs b/src/types/config/types/subconfigs/email/mailgun.rs index 636e462..9f803ad 100644 --- a/src/types/config/types/subconfigs/email/mailgun.rs +++ b/src/types/config/types/subconfigs/email/mailgun.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/email/mailjet.rs b/src/types/config/types/subconfigs/email/mailjet.rs index 4e505c1..b1c9b42 100644 --- a/src/types/config/types/subconfigs/email/mailjet.rs +++ b/src/types/config/types/subconfigs/email/mailjet.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/email/mod.rs b/src/types/config/types/subconfigs/email/mod.rs index 21253fd..f3cbbec 100644 --- a/src/types/config/types/subconfigs/email/mod.rs +++ b/src/types/config/types/subconfigs/email/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod mailgun; pub mod mailjet; pub mod sendgrid; diff --git a/src/types/config/types/subconfigs/email/sendgrid.rs b/src/types/config/types/subconfigs/email/sendgrid.rs index 879c719..993a917 100644 --- a/src/types/config/types/subconfigs/email/sendgrid.rs +++ b/src/types/config/types/subconfigs/email/sendgrid.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/email/smtp.rs b/src/types/config/types/subconfigs/email/smtp.rs index a02c66f..38ade70 100644 --- a/src/types/config/types/subconfigs/email/smtp.rs +++ b/src/types/config/types/subconfigs/email/smtp.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/guild/autojoin.rs b/src/types/config/types/subconfigs/guild/autojoin.rs index fe72c6c..2cb5cff 100644 --- a/src/types/config/types/subconfigs/guild/autojoin.rs +++ b/src/types/config/types/subconfigs/guild/autojoin.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::utils::Snowflake; diff --git a/src/types/config/types/subconfigs/guild/discovery.rs b/src/types/config/types/subconfigs/guild/discovery.rs index 1e283b0..50738f1 100644 --- a/src/types/config/types/subconfigs/guild/discovery.rs +++ b/src/types/config/types/subconfigs/guild/discovery.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/guild/mod.rs b/src/types/config/types/subconfigs/guild/mod.rs index e4d7dcf..f180356 100644 --- a/src/types/config/types/subconfigs/guild/mod.rs +++ b/src/types/config/types/subconfigs/guild/mod.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod autojoin; pub mod discovery; diff --git a/src/types/config/types/subconfigs/kafka/mod.rs b/src/types/config/types/subconfigs/kafka/mod.rs index 1ee4015..459cfd8 100644 --- a/src/types/config/types/subconfigs/kafka/mod.rs +++ b/src/types/config/types/subconfigs/kafka/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/limits/channel.rs b/src/types/config/types/subconfigs/limits/channel.rs index 03e46e5..2415726 100644 --- a/src/types/config/types/subconfigs/limits/channel.rs +++ b/src/types/config/types/subconfigs/limits/channel.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/limits/global.rs b/src/types/config/types/subconfigs/limits/global.rs index 87f9e1c..0140447 100644 --- a/src/types/config/types/subconfigs/limits/global.rs +++ b/src/types/config/types/subconfigs/limits/global.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/limits/guild.rs b/src/types/config/types/subconfigs/limits/guild.rs index 6def5a0..9ef8f90 100644 --- a/src/types/config/types/subconfigs/limits/guild.rs +++ b/src/types/config/types/subconfigs/limits/guild.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/limits/message.rs b/src/types/config/types/subconfigs/limits/message.rs index 9d368b9..3beb76e 100644 --- a/src/types/config/types/subconfigs/limits/message.rs +++ b/src/types/config/types/subconfigs/limits/message.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/limits/mod.rs b/src/types/config/types/subconfigs/limits/mod.rs index 4dbc2fa..549e909 100644 --- a/src/types/config/types/subconfigs/limits/mod.rs +++ b/src/types/config/types/subconfigs/limits/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod channel; pub mod global; pub mod guild; diff --git a/src/types/config/types/subconfigs/limits/ratelimits/auth.rs b/src/types/config/types/subconfigs/limits/ratelimits/auth.rs index 9815a5d..78f1908 100644 --- a/src/types/config/types/subconfigs/limits/ratelimits/auth.rs +++ b/src/types/config/types/subconfigs/limits/ratelimits/auth.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::limits::ratelimits::RateLimitOptions; diff --git a/src/types/config/types/subconfigs/limits/ratelimits/mod.rs b/src/types/config/types/subconfigs/limits/ratelimits/mod.rs index 934b922..501afe9 100644 --- a/src/types/config/types/subconfigs/limits/ratelimits/mod.rs +++ b/src/types/config/types/subconfigs/limits/ratelimits/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; pub mod auth; diff --git a/src/types/config/types/subconfigs/limits/ratelimits/route.rs b/src/types/config/types/subconfigs/limits/ratelimits/route.rs index 1aa0be2..7c70fdc 100644 --- a/src/types/config/types/subconfigs/limits/ratelimits/route.rs +++ b/src/types/config/types/subconfigs/limits/ratelimits/route.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::config::types::subconfigs::limits::ratelimits::{ diff --git a/src/types/config/types/subconfigs/limits/rates.rs b/src/types/config/types/subconfigs/limits/rates.rs index 642dcc8..4c9b9a1 100644 --- a/src/types/config/types/subconfigs/limits/rates.rs +++ b/src/types/config/types/subconfigs/limits/rates.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::collections::HashMap; use serde::{Deserialize, Serialize}; diff --git a/src/types/config/types/subconfigs/limits/user.rs b/src/types/config/types/subconfigs/limits/user.rs index e43b746..473535a 100644 --- a/src/types/config/types/subconfigs/limits/user.rs +++ b/src/types/config/types/subconfigs/limits/user.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/mod.rs b/src/types/config/types/subconfigs/mod.rs index 4c85096..4366dc4 100644 --- a/src/types/config/types/subconfigs/mod.rs +++ b/src/types/config/types/subconfigs/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub mod client; pub mod defaults; pub mod email; diff --git a/src/types/config/types/subconfigs/region/mod.rs b/src/types/config/types/subconfigs/region/mod.rs index 08c3b73..1661c09 100644 --- a/src/types/config/types/subconfigs/region/mod.rs +++ b/src/types/config/types/subconfigs/region/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/register/date_of_birth.rs b/src/types/config/types/subconfigs/register/date_of_birth.rs index 9c1bec1..6689297 100644 --- a/src/types/config/types/subconfigs/register/date_of_birth.rs +++ b/src/types/config/types/subconfigs/register/date_of_birth.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/register/email.rs b/src/types/config/types/subconfigs/register/email.rs index 8688cd2..f2aea63 100644 --- a/src/types/config/types/subconfigs/register/email.rs +++ b/src/types/config/types/subconfigs/register/email.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/register/mod.rs b/src/types/config/types/subconfigs/register/mod.rs index a2d714e..9a873ae 100644 --- a/src/types/config/types/subconfigs/register/mod.rs +++ b/src/types/config/types/subconfigs/register/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use date_of_birth::DateOfBirthConfiguration; pub use email::RegistrationEmailConfiguration; pub use password::PasswordConfiguration; diff --git a/src/types/config/types/subconfigs/register/password.rs b/src/types/config/types/subconfigs/register/password.rs index 9247f7d..1d380ba 100644 --- a/src/types/config/types/subconfigs/register/password.rs +++ b/src/types/config/types/subconfigs/register/password.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/security/captcha.rs b/src/types/config/types/subconfigs/security/captcha.rs index 82bb517..c97b6e2 100644 --- a/src/types/config/types/subconfigs/security/captcha.rs +++ b/src/types/config/types/subconfigs/security/captcha.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/subconfigs/security/mod.rs b/src/types/config/types/subconfigs/security/mod.rs index 8455000..26146cd 100644 --- a/src/types/config/types/subconfigs/security/mod.rs +++ b/src/types/config/types/subconfigs/security/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use captcha::{CaptchaConfiguration, CaptchaService}; pub use twofactor::TwoFactorConfiguration; diff --git a/src/types/config/types/subconfigs/security/twofactor.rs b/src/types/config/types/subconfigs/security/twofactor.rs index 39a0373..1182a45 100644 --- a/src/types/config/types/subconfigs/security/twofactor.rs +++ b/src/types/config/types/subconfigs/security/twofactor.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/config/types/template_configuration.rs b/src/types/config/types/template_configuration.rs index 932670e..9f370b4 100644 --- a/src/types/config/types/template_configuration.rs +++ b/src/types/config/types/template_configuration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] diff --git a/src/types/entities/application.rs b/src/types/entities/application.rs index 95df4f2..4014e55 100644 --- a/src/types/entities/application.rs +++ b/src/types/entities/application.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use bitflags::bitflags; use serde::{Deserialize, Serialize}; use serde_json::Value; diff --git a/src/types/entities/attachment.rs b/src/types/entities/attachment.rs index 9aacc08..f2e221d 100644 --- a/src/types/entities/attachment.rs +++ b/src/types/entities/attachment.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::utils::Snowflake; diff --git a/src/types/entities/audit_log.rs b/src/types/entities/audit_log.rs index 4023b7a..477fb20 100644 --- a/src/types/entities/audit_log.rs +++ b/src/types/entities/audit_log.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::gateway::Shared; diff --git a/src/types/entities/auto_moderation.rs b/src/types/entities/auto_moderation.rs index 779f58b..cd69bf2 100644 --- a/src/types/entities/auto_moderation.rs +++ b/src/types/entities/auto_moderation.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::gateway::Shared; #[cfg(feature = "client")] use crate::gateway::Updateable; diff --git a/src/types/entities/channel.rs b/src/types/entities/channel.rs index c268859..7d000dc 100644 --- a/src/types/entities/channel.rs +++ b/src/types/entities/channel.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use serde_aux::prelude::deserialize_string_from_number; diff --git a/src/types/entities/config.rs b/src/types/entities/config.rs index 6244e9d..000fe25 100644 --- a/src/types/entities/config.rs +++ b/src/types/entities/config.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use serde_json::Value; #[cfg(feature = "sqlx")] diff --git a/src/types/entities/emoji.rs b/src/types/entities/emoji.rs index 1c78cba..e84b025 100644 --- a/src/types/entities/emoji.rs +++ b/src/types/entities/emoji.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::fmt::Debug; use serde::{Deserialize, Serialize}; diff --git a/src/types/entities/guild.rs b/src/types/entities/guild.rs index 4a3d952..52ec5e5 100644 --- a/src/types/entities/guild.rs +++ b/src/types/entities/guild.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::fmt::Debug; use bitflags::bitflags; diff --git a/src/types/entities/guild_member.rs b/src/types/entities/guild_member.rs index a18afbc..14414c5 100644 --- a/src/types/entities/guild_member.rs +++ b/src/types/entities/guild_member.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::gateway::Shared; diff --git a/src/types/entities/integration.rs b/src/types/entities/integration.rs index 580590a..97d21c3 100644 --- a/src/types/entities/integration.rs +++ b/src/types/entities/integration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/types/entities/invite.rs b/src/types/entities/invite.rs index f9eaaa3..720203a 100644 --- a/src/types/entities/invite.rs +++ b/src/types/entities/invite.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/types/entities/message.rs b/src/types/entities/message.rs index 1e6810d..d764243 100644 --- a/src/types/entities/message.rs +++ b/src/types/entities/message.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::gateway::Shared; diff --git a/src/types/entities/mod.rs b/src/types/entities/mod.rs index 7e88a62..1400d0e 100644 --- a/src/types/entities/mod.rs +++ b/src/types/entities/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use application::*; pub use attachment::*; pub use audit_log::*; diff --git a/src/types/entities/ratelimits.rs b/src/types/entities/ratelimits.rs index f766a12..1823e76 100644 --- a/src/types/entities/ratelimits.rs +++ b/src/types/entities/ratelimits.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::hash::Hash; use serde::{Deserialize, Serialize}; diff --git a/src/types/entities/relationship.rs b/src/types/entities/relationship.rs index 6f207f2..a568256 100644 --- a/src/types/entities/relationship.rs +++ b/src/types/entities/relationship.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use serde_repr::{Deserialize_repr, Serialize_repr}; diff --git a/src/types/entities/role.rs b/src/types/entities/role.rs index 6a8327e..1b5e91e 100644 --- a/src/types/entities/role.rs +++ b/src/types/entities/role.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use bitflags::bitflags; use serde::{Deserialize, Serialize}; use serde_aux::prelude::{deserialize_option_number_from_string, deserialize_string_from_number}; diff --git a/src/types/entities/security_key.rs b/src/types/entities/security_key.rs index 2cf8f66..7e0bb6b 100644 --- a/src/types/entities/security_key.rs +++ b/src/types/entities/security_key.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::utils::Snowflake; diff --git a/src/types/entities/stage_instance.rs b/src/types/entities/stage_instance.rs index 8810f52..d48231b 100644 --- a/src/types/entities/stage_instance.rs +++ b/src/types/entities/stage_instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use serde_repr::{Deserialize_repr, Serialize_repr}; diff --git a/src/types/entities/sticker.rs b/src/types/entities/sticker.rs index d4331fd..8b95bc4 100644 --- a/src/types/entities/sticker.rs +++ b/src/types/entities/sticker.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::gateway::Shared; diff --git a/src/types/entities/team.rs b/src/types/entities/team.rs index daac58c..98bd23e 100644 --- a/src/types/entities/team.rs +++ b/src/types/entities/team.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::gateway::Shared; diff --git a/src/types/entities/template.rs b/src/types/entities/template.rs index 167697f..f34fbd7 100644 --- a/src/types/entities/template.rs +++ b/src/types/entities/template.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/types/entities/user.rs b/src/types/entities/user.rs index 90221ca..66fbab8 100644 --- a/src/types/entities/user.rs +++ b/src/types/entities/user.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::utils::Snowflake; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/types/entities/user_settings.rs b/src/types/entities/user_settings.rs index a27e748..6c072a8 100644 --- a/src/types/entities/user_settings.rs +++ b/src/types/entities/user_settings.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::sync::{Arc, RwLock}; use chrono::{serde::ts_milliseconds_option, Utc}; diff --git a/src/types/entities/voice_state.rs b/src/types/entities/voice_state.rs index 035f8f9..dc0047d 100644 --- a/src/types/entities/voice_state.rs +++ b/src/types/entities/voice_state.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + #[cfg(feature = "client")] use chorus_macros::Composite; diff --git a/src/types/entities/webhook.rs b/src/types/entities/webhook.rs index 7eb2b66..f973956 100644 --- a/src/types/entities/webhook.rs +++ b/src/types/entities/webhook.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::fmt::Debug; use serde::{Deserialize, Serialize}; diff --git a/src/types/errors.rs b/src/types/errors.rs index db7cbf7..f0a488c 100644 --- a/src/types/errors.rs +++ b/src/types/errors.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, thiserror::Error)] diff --git a/src/types/events/application.rs b/src/types/events/application.rs index 7fee577..43537ed 100644 --- a/src/types/events/application.rs +++ b/src/types/events/application.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{GuildApplicationCommandPermissions, WebSocketEvent}; diff --git a/src/types/events/auto_moderation.rs b/src/types/events/auto_moderation.rs index b667486..fd42207 100644 --- a/src/types/events/auto_moderation.rs +++ b/src/types/events/auto_moderation.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::{JsonField, SourceUrlField}; use chorus_macros::{JsonField, SourceUrlField}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/call.rs b/src/types/events/call.rs index 508aae2..11a8801 100644 --- a/src/types/events/call.rs +++ b/src/types/events/call.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{Snowflake, VoiceState, WebSocketEvent}; diff --git a/src/types/events/channel.rs b/src/types/events/channel.rs index 10e8561..748d04a 100644 --- a/src/types/events/channel.rs +++ b/src/types/events/channel.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::events::WebSocketEvent; use crate::types::IntoShared; use crate::types::{entities::Channel, JsonField, Snowflake, SourceUrlField}; diff --git a/src/types/events/guild.rs b/src/types/events/guild.rs index a460403..92f46ea 100644 --- a/src/types/events/guild.rs +++ b/src/types/events/guild.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus_macros::{JsonField, SourceUrlField}; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/heartbeat.rs b/src/types/events/heartbeat.rs index b402ff9..2b4141b 100644 --- a/src/types/events/heartbeat.rs +++ b/src/types/events/heartbeat.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::events::WebSocketEvent; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/hello.rs b/src/types/events/hello.rs index fef3e22..83542c9 100644 --- a/src/types/events/hello.rs +++ b/src/types/events/hello.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::WebSocketEvent; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/identify.rs b/src/types/events/identify.rs index 12bc369..648b554 100644 --- a/src/types/events/identify.rs +++ b/src/types/events/identify.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::events::{PresenceUpdate, WebSocketEvent}; use serde::{Deserialize, Serialize}; use serde_with::serde_as; diff --git a/src/types/events/integration.rs b/src/types/events/integration.rs index 2423e78..3550c4e 100644 --- a/src/types/events/integration.rs +++ b/src/types/events/integration.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{Integration, Snowflake, WebSocketEvent}; diff --git a/src/types/events/interaction.rs b/src/types/events/interaction.rs index 304e7d4..48d5526 100644 --- a/src/types/events/interaction.rs +++ b/src/types/events/interaction.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{Interaction, WebSocketEvent}; diff --git a/src/types/events/invite.rs b/src/types/events/invite.rs index 674cc62..01e76ff 100644 --- a/src/types/events/invite.rs +++ b/src/types/events/invite.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{GuildInvite, Snowflake, WebSocketEvent}; diff --git a/src/types/events/lazy_request.rs b/src/types/events/lazy_request.rs index fd53183..0311e42 100644 --- a/src/types/events/lazy_request.rs +++ b/src/types/events/lazy_request.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::collections::HashMap; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/message.rs b/src/types/events/message.rs index fac083b..ccf74c7 100644 --- a/src/types/events/message.rs +++ b/src/types/events/message.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{ diff --git a/src/types/events/mod.rs b/src/types/events/mod.rs index 5c8e6c4..a607f2c 100644 --- a/src/types/events/mod.rs +++ b/src/types/events/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; pub use application::*; diff --git a/src/types/events/passive_update.rs b/src/types/events/passive_update.rs index 234af3e..0f728a2 100644 --- a/src/types/events/passive_update.rs +++ b/src/types/events/passive_update.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use super::{ChannelUnreadUpdateObject, WebSocketEvent}; diff --git a/src/types/events/presence.rs b/src/types/events/presence.rs index e9a7dee..afbf633 100644 --- a/src/types/events/presence.rs +++ b/src/types/events/presence.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::{events::WebSocketEvent, UserStatus}; use crate::types::{Activity, ClientStatusObject, PublicUser, Snowflake}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/ready.rs b/src/types/events/ready.rs index ea46b69..7e88bdf 100644 --- a/src/types/events/ready.rs +++ b/src/types/events/ready.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::entities::{Guild, User}; diff --git a/src/types/events/relationship.rs b/src/types/events/relationship.rs index a1f75a5..6352d91 100644 --- a/src/types/events/relationship.rs +++ b/src/types/events/relationship.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::{events::WebSocketEvent, Relationship, RelationshipType, Snowflake}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/request_members.rs b/src/types/events/request_members.rs index 526313b..0e4d9dd 100644 --- a/src/types/events/request_members.rs +++ b/src/types/events/request_members.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::{events::WebSocketEvent, Snowflake}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/resume.rs b/src/types/events/resume.rs index 45d2235..86b3dff 100644 --- a/src/types/events/resume.rs +++ b/src/types/events/resume.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::events::WebSocketEvent; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/session.rs b/src/types/events/session.rs index 868c8e8..2e5de7a 100644 --- a/src/types/events/session.rs +++ b/src/types/events/session.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{Activity, WebSocketEvent}; diff --git a/src/types/events/stage_instance.rs b/src/types/events/stage_instance.rs index c2bbc46..3a0fa64 100644 --- a/src/types/events/stage_instance.rs +++ b/src/types/events/stage_instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{StageInstance, WebSocketEvent}; diff --git a/src/types/events/thread.rs b/src/types/events/thread.rs index 34dd1a2..abfecf9 100644 --- a/src/types/events/thread.rs +++ b/src/types/events/thread.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus_macros::{JsonField, SourceUrlField}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/user.rs b/src/types/events/user.rs index 7165812..130ddd1 100644 --- a/src/types/events/user.rs +++ b/src/types/events/user.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::entities::PublicUser; diff --git a/src/types/events/voice.rs b/src/types/events/voice.rs index 2618ee1..76687d4 100644 --- a/src/types/events/voice.rs +++ b/src/types/events/voice.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::{events::WebSocketEvent, Snowflake, VoiceState}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/webhooks.rs b/src/types/events/webhooks.rs index 518b332..814589c 100644 --- a/src/types/events/webhooks.rs +++ b/src/types/events/webhooks.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::Snowflake; diff --git a/src/types/events/webrtc/identify.rs b/src/types/events/webrtc/identify.rs index 45f1037..f409362 100644 --- a/src/types/events/webrtc/identify.rs +++ b/src/types/events/webrtc/identify.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::{Snowflake, WebSocketEvent}; use serde::{Deserialize, Serialize}; diff --git a/src/types/events/webrtc/mod.rs b/src/types/events/webrtc/mod.rs index ebaf7b2..a6d4ba4 100644 --- a/src/types/events/webrtc/mod.rs +++ b/src/types/events/webrtc/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use identify::*; pub use ready::*; diff --git a/src/types/events/webrtc/ready.rs b/src/types/events/webrtc/ready.rs index 008e41e..417e042 100644 --- a/src/types/events/webrtc/ready.rs +++ b/src/types/events/webrtc/ready.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::net::Ipv4Addr; use crate::types::WebSocketEvent; diff --git a/src/types/interfaces/activity.rs b/src/types/interfaces/activity.rs index 0da4747..b042d91 100644 --- a/src/types/interfaces/activity.rs +++ b/src/types/interfaces/activity.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::{entities::Emoji, Snowflake}; diff --git a/src/types/interfaces/connected_account.rs b/src/types/interfaces/connected_account.rs index 8b13789..66e0819 100644 --- a/src/types/interfaces/connected_account.rs +++ b/src/types/interfaces/connected_account.rs @@ -1 +1,3 @@ - +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. diff --git a/src/types/interfaces/guild_welcome_screen.rs b/src/types/interfaces/guild_welcome_screen.rs index dbeef0f..1646ca1 100644 --- a/src/types/interfaces/guild_welcome_screen.rs +++ b/src/types/interfaces/guild_welcome_screen.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::utils::Snowflake; diff --git a/src/types/interfaces/interaction.rs b/src/types/interfaces/interaction.rs index 2aa29fd..f88eaf9 100644 --- a/src/types/interfaces/interaction.rs +++ b/src/types/interfaces/interaction.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use serde_json::Value; diff --git a/src/types/interfaces/mod.rs b/src/types/interfaces/mod.rs index 946eb39..309020d 100644 --- a/src/types/interfaces/mod.rs +++ b/src/types/interfaces/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use activity::*; pub use connected_account::*; pub use guild_welcome_screen::*; diff --git a/src/types/interfaces/status.rs b/src/types/interfaces/status.rs index d5c07b6..fa5f821 100644 --- a/src/types/interfaces/status.rs +++ b/src/types/interfaces/status.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize, Default, Clone, PartialEq, Eq)] diff --git a/src/types/mod.rs b/src/types/mod.rs index 6f06ef0..8eee13a 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + //! All the types, entities, events and interfaces of the Spacebar API. pub use config::*; diff --git a/src/types/schema/apierror.rs b/src/types/schema/apierror.rs index 95e72a5..0dd1f6f 100644 --- a/src/types/schema/apierror.rs +++ b/src/types/schema/apierror.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + #[cfg(feature = "poem")] use poem::{http::StatusCode, IntoResponse, Response}; use serde_json::{json, Value}; diff --git a/src/types/schema/auth.rs b/src/types/schema/auth.rs index 2159de9..2796805 100644 --- a/src/types/schema/auth.rs +++ b/src/types/schema/auth.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq, Eq)] diff --git a/src/types/schema/channel.rs b/src/types/schema/channel.rs index 354459c..1502f97 100644 --- a/src/types/schema/channel.rs +++ b/src/types/schema/channel.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use bitflags::bitflags; use serde::{Deserialize, Serialize}; diff --git a/src/types/schema/guild.rs b/src/types/schema/guild.rs index 9d2c27d..50519b1 100644 --- a/src/types/schema/guild.rs +++ b/src/types/schema/guild.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use bitflags::bitflags; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/types/schema/message.rs b/src/types/schema/message.rs index 4e34910..7551b6b 100644 --- a/src/types/schema/message.rs +++ b/src/types/schema/message.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::entities::{ diff --git a/src/types/schema/mod.rs b/src/types/schema/mod.rs index 08dae05..d353e09 100644 --- a/src/types/schema/mod.rs +++ b/src/types/schema/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use apierror::*; pub use auth::*; pub use channel::*; diff --git a/src/types/schema/relationship.rs b/src/types/schema/relationship.rs index b0a60d6..54145ae 100644 --- a/src/types/schema/relationship.rs +++ b/src/types/schema/relationship.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; use crate::types::RelationshipType; diff --git a/src/types/schema/role.rs b/src/types/schema/role.rs index 284f506..168d999 100644 --- a/src/types/schema/role.rs +++ b/src/types/schema/role.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize, Clone)] diff --git a/src/types/schema/user.rs b/src/types/schema/user.rs index 5584cf4..7d21754 100644 --- a/src/types/schema/user.rs +++ b/src/types/schema/user.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::collections::HashMap; use serde::{Deserialize, Serialize}; diff --git a/src/types/utils/jwt.rs b/src/types/utils/jwt.rs index ca0aebb..6addb4c 100644 --- a/src/types/utils/jwt.rs +++ b/src/types/utils/jwt.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use crate::types::utils::Snowflake; use jsonwebtoken::{encode, EncodingKey, Header}; use serde::{Deserialize, Serialize}; diff --git a/src/types/utils/mod.rs b/src/types/utils/mod.rs index 1b1b3b6..a160260 100644 --- a/src/types/utils/mod.rs +++ b/src/types/utils/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + pub use regexes::*; pub use rights::Rights; pub use snowflake::Snowflake; diff --git a/src/types/utils/regexes.rs b/src/types/utils/regexes.rs index 0f160eb..f854b4f 100644 --- a/src/types/utils/regexes.rs +++ b/src/types/utils/regexes.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use lazy_static::lazy_static; use regex::Regex; diff --git a/src/types/utils/rights.rs b/src/types/utils/rights.rs index 5a3c373..4b1aa13 100644 --- a/src/types/utils/rights.rs +++ b/src/types/utils/rights.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use bitflags::bitflags; bitflags! { diff --git a/src/types/utils/snowflake.rs b/src/types/utils/snowflake.rs index b4e1d9e..1582085 100644 --- a/src/types/utils/snowflake.rs +++ b/src/types/utils/snowflake.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::{ fmt::Display, sync::atomic::{AtomicUsize, Ordering}, diff --git a/src/voice.rs b/src/voice.rs index c2fcaf2..79ac5ba 100644 --- a/src/voice.rs +++ b/src/voice.rs @@ -1,2 +1,6 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + //! Where the voice chat implementation will be, once it's finished. //! For development on voice, see the feature/voice branch. diff --git a/tests/auth.rs b/tests/auth.rs index 130bfb6..35007f1 100644 --- a/tests/auth.rs +++ b/tests/auth.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::{LoginSchema, RegisterSchema}; #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; diff --git a/tests/channels.rs b/tests/channels.rs index d9842c6..14359d2 100644 --- a/tests/channels.rs +++ b/tests/channels.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::{ self, Channel, GetChannelMessagesSchema, MessageSendSchema, PermissionFlags, PermissionOverwrite, PrivateChannelCreateSchema, RelationshipType, Snowflake, diff --git a/tests/common/mod.rs b/tests/common/mod.rs index e18f92b..339bab8 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::gateway::{Gateway, Shared}; use chorus::types::IntoShared; use chorus::{ diff --git a/tests/gateway.rs b/tests/gateway.rs index 76f69ae..771db02 100644 --- a/tests/gateway.rs +++ b/tests/gateway.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + mod common; use chorus::errors::GatewayError; diff --git a/tests/guilds.rs b/tests/guilds.rs index ab955de..e3a73f5 100644 --- a/tests/guilds.rs +++ b/tests/guilds.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::{ CreateChannelInviteSchema, Guild, GuildBanCreateSchema, GuildCreateSchema, GuildModifySchema, }; diff --git a/tests/instance.rs b/tests/instance.rs index f1243a5..eb5fc60 100644 --- a/tests/instance.rs +++ b/tests/instance.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + mod common; #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; diff --git a/tests/invites.rs b/tests/invites.rs index ae1b9ab..e020199 100644 --- a/tests/invites.rs +++ b/tests/invites.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + mod common; use chorus::types::CreateChannelInviteSchema; #[cfg(target_arch = "wasm32")] diff --git a/tests/members.rs b/tests/members.rs index 9b415c3..a66d25a 100644 --- a/tests/members.rs +++ b/tests/members.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::{errors::ChorusResult, types::GuildMember}; #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; diff --git a/tests/messages.rs b/tests/messages.rs index 7ff7598..3ca6e16 100644 --- a/tests/messages.rs +++ b/tests/messages.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use std::fs::File; use std::io::{BufReader, Read}; diff --git a/tests/ratelimit.rs b/tests/ratelimit.rs index 8843ed0..bae78c9 100644 --- a/tests/ratelimit.rs +++ b/tests/ratelimit.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::ratelimiter::ChorusRequest; mod common; diff --git a/tests/relationships.rs b/tests/relationships.rs index c8ee9cc..2eea5b3 100644 --- a/tests/relationships.rs +++ b/tests/relationships.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::{self, Relationship, RelationshipType}; #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; diff --git a/tests/roles.rs b/tests/roles.rs index 8dda704..3246140 100644 --- a/tests/roles.rs +++ b/tests/roles.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::{self, RoleCreateModifySchema, RoleObject}; #[cfg(target_arch = "wasm32")] use wasm_bindgen_test::*; diff --git a/tests/types.rs b/tests/types.rs index 5acd4c6..8895bb4 100644 --- a/tests/types.rs +++ b/tests/types.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + mod config { mod subconfigs { mod client { diff --git a/tests/urlbundle.rs b/tests/urlbundle.rs index 790229b..5ecdafe 100644 --- a/tests/urlbundle.rs +++ b/tests/urlbundle.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::types::domains_configuration::WellKnownResponse; use chorus::UrlBundle; use serde_json::json; diff --git a/tests/user.rs b/tests/user.rs index bf7938b..2fbc187 100644 --- a/tests/user.rs +++ b/tests/user.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chorus::types::{PublicUser, Snowflake, User}; #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] diff --git a/tests/wasm.rs b/tests/wasm.rs index d5d26c1..7c30719 100644 --- a/tests/wasm.rs +++ b/tests/wasm.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use wasm_bindgen_test::wasm_bindgen_test; wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);