aboutsummaryrefslogtreecommitdiff
path: root/src/utils/builder/mod.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-13 08:22:24 -0800
committerAustin Hellyer <[email protected]>2016-11-13 08:22:24 -0800
commitf633d1c9603079f584f4f715b308b33c0750ad3a (patch)
treef77bc0b630731676be880b11c24b90cffef8c537 /src/utils/builder/mod.rs
parentDon't overflow on message length check (diff)
downloadserenity-f633d1c9603079f584f4f715b308b33c0750ad3a.tar.xz
serenity-f633d1c9603079f584f4f715b308b33c0750ad3a.zip
Move the builders to the utils
The builders aren't a large enough portion of the library to deserve their own root-level module, so move them to the `utils` module. Additionally, split them into separate files, as the library will be receiving more builders and the single-file pattern was getting rather large.
Diffstat (limited to 'src/utils/builder/mod.rs')
-rw-r--r--src/utils/builder/mod.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/utils/builder/mod.rs b/src/utils/builder/mod.rs
new file mode 100644
index 0000000..cd830fa
--- /dev/null
+++ b/src/utils/builder/mod.rs
@@ -0,0 +1,26 @@
+//! A set of builders used to make using methods on certain structs simpler to
+//! use.
+//!
+//! These are used when not all parameters are required, all parameters are
+//! optional, and/or sane default values for required parameters can be applied
+//! by a builder.
+
+mod create_embed;
+mod create_invite;
+mod edit_channel;
+mod edit_guild;
+mod edit_member;
+mod edit_profile;
+mod edit_role;
+mod execute_webhook;
+mod get_messages;
+
+pub use self::create_embed::CreateEmbed;
+pub use self::create_invite::CreateInvite;
+pub use self::edit_channel::EditChannel;
+pub use self::edit_guild::EditGuild;
+pub use self::edit_member::EditMember;
+pub use self::edit_profile::EditProfile;
+pub use self::edit_role::EditRole;
+pub use self::execute_webhook::ExecuteWebhook;
+pub use self::get_messages::GetMessages;