Skip to main content

Body

Trait Body 

Source
pub trait Body:
    Validate
    + Serialize
    + DeserializeOwned {
    type Response;

    const NAME: &'static str;
}
Expand description

A command body type: its wire name and response body type.

Required Associated Constants§

Source

const NAME: &'static str

The command’s type.

Required Associated Types§

Source

type Response

The ok: true response body.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Body for Ack

Source§

const NAME: &'static str = "sync.ack"

Source§

type Response = Empty

Source§

impl Body for Approve

Source§

const NAME: &'static str = "membership.approve"

Source§

type Response = Member

Source§

impl Body for BanMember

Source§

const NAME: &'static str = "member.ban"

Source§

type Response = Banned

Source§

impl Body for Bans

Source§

const NAME: &'static str = "member.bans"

Source§

type Response = BanPage

Source§

impl Body for Close

Source§

const NAME: &'static str = "dm.close"

Source§

type Response = Empty

Source§

impl Body for Configure

Source§

const NAME: &'static str = "bot.configure"

Source§

type Response = Configured

Source§

impl Body for zaun_community_protocol::command::community::Create

Source§

const NAME: &'static str = "community.create"

Source§

type Response = Created

Source§

impl Body for zaun_community_protocol::command::channel::Create

Source§

const NAME: &'static str = "channel.create"

Source§

type Response = Channel

Source§

impl Body for zaun_community_protocol::command::role::Create

Source§

const NAME: &'static str = "role.create"

Source§

type Response = Role

Source§

impl Body for zaun_community_protocol::command::invite::Create

Source§

const NAME: &'static str = "invite.create"

Source§

type Response = Created

Source§

impl Body for zaun_community_protocol::command::report::Create

Source§

const NAME: &'static str = "report.create"

Source§

type Response = Created

Source§

impl Body for zaun_community_protocol::command::interaction::Create

Source§

const NAME: &'static str = "interaction.create"

Source§

type Response = Created

Source§

impl Body for zaun_community_protocol::command::channel::Delete

Source§

const NAME: &'static str = "channel.delete"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::role::Delete

Source§

const NAME: &'static str = "role.delete"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::message::Delete

Source§

const NAME: &'static str = "message.delete"

Source§

type Response = Sequenced

Source§

impl Body for DescriptorPublish

Source§

const NAME: &'static str = "community.descriptor.publish"

Source§

type Response = Published

Source§

impl Body for zaun_community_protocol::command::lockdown::Disable

Source§

const NAME: &'static str = "moderation.lockdown.disable"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::bot::Disable

Source§

const NAME: &'static str = "bot.disable"

Source§

type Response = BotCard

Source§

impl Body for Download

Source§

const NAME: &'static str = "attachment.download"

Source§

type Response = Attachment

Source§

impl Body for Edit

Source§

const NAME: &'static str = "message.edit"

Source§

type Response = Sequenced

Source§

impl Body for zaun_community_protocol::command::lockdown::Enable

Source§

const NAME: &'static str = "moderation.lockdown.enable"

Source§

type Response = Lockdown

Source§

impl Body for zaun_community_protocol::command::bot::Enable

Source§

const NAME: &'static str = "bot.enable"

Source§

type Response = BotCard

Source§

impl Body for Events

Source§

const NAME: &'static str = "sync.events"

Source§

type Response = EventsPage

Source§

impl Body for Followup

Source§

const NAME: &'static str = "interaction.followup"

Source§

type Response = Replied

Source§

impl Body for zaun_community_protocol::command::community::Get

Source§

const NAME: &'static str = "community.get"

Source§

type Response = Info

Source§

impl Body for zaun_community_protocol::command::member::Get

Source§

const NAME: &'static str = "member.get"

Source§

type Response = Member

Source§

impl Body for zaun_community_protocol::command::lockdown::Get

Source§

const NAME: &'static str = "moderation.lockdown.get"

Source§

type Response = GetResponse

Source§

impl Body for zaun_community_protocol::command::report::Get

Source§

const NAME: &'static str = "report.get"

Source§

type Response = Report

Source§

impl Body for Grant

Source§

const NAME: &'static str = "bot.grant"

Source§

type Response = BotCard

Source§

impl Body for Hello

Source§

const NAME: &'static str = "session.hello"

Source§

type Response = Welcome

Source§

impl Body for History

Source§

const NAME: &'static str = "message.history"

Source§

type Response = HistoryPage

Source§

impl Body for IconGet

Source§

const NAME: &'static str = "community.icon.get"

Source§

type Response = Icon

Source§

impl Body for Install

Source§

const NAME: &'static str = "bot.install"

Source§

type Response = BotCard

Source§

impl Body for Join

Source§

const NAME: &'static str = "voice.join"

Source§

type Response = Joined

Source§

impl Body for Keys

Source§

const NAME: &'static str = "voice.keys"

Source§

type Response = Empty

Source§

impl Body for Kick

Source§

const NAME: &'static str = "member.kick"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::community::Leave

Source§

const NAME: &'static str = "community.leave"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::voice::Leave

Source§

const NAME: &'static str = "voice.leave"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::member::List

Source§

const NAME: &'static str = "member.list"

Source§

type Response = Page

Source§

impl Body for zaun_community_protocol::command::invite::List

Source§

const NAME: &'static str = "invite.list"

Source§

type Response = Page

Source§

impl Body for zaun_community_protocol::command::audit::List

Source§

const NAME: &'static str = "audit.list"

Source§

type Response = Page

Source§

impl Body for zaun_community_protocol::command::report::List

Source§

const NAME: &'static str = "report.list"

Source§

type Response = Page

Source§

impl Body for zaun_community_protocol::command::presence::List

Source§

const NAME: &'static str = "presence.list"

Source§

type Response = Presences

Source§

impl Body for zaun_community_protocol::command::bot::List

Source§

const NAME: &'static str = "bot.list"

Source§

type Response = Bots

Source§

impl Body for zaun_community_protocol::command::app::List

Source§

const NAME: &'static str = "command.list"

Source§

type Response = Commands

Source§

impl Body for zaun_community_protocol::command::dm::List

Source§

const NAME: &'static str = "dm.list"

Source§

type Response = Channels

Source§

impl Body for Moderate

Source§

const NAME: &'static str = "voice.moderate"

Source§

type Response = Empty

Source§

impl Body for Open

Source§

const NAME: &'static str = "dm.open"

Source§

type Response = Channel

Source§

impl Body for OriginalDelete

Source§

const NAME: &'static str = "interaction.original.delete"

Source§

type Response = Empty

Source§

impl Body for OriginalEdit

Source§

const NAME: &'static str = "interaction.original.edit"

Source§

type Response = Empty

Source§

impl Body for Pending

Source§

const NAME: &'static str = "membership.pending"

Source§

type Response = PendingPage

Source§

impl Body for PermissionsUpdate

Source§

const NAME: &'static str = "channel.permissions.update"

Source§

type Response = Channel

Source§

impl Body for PolicyGet

Source§

const NAME: &'static str = "admission.policy.get"

Source§

type Response = PolicyResponse

Source§

impl Body for PolicyUpdate

Source§

const NAME: &'static str = "admission.policy.update"

Source§

type Response = PolicyUpdated

Source§

impl Body for Presence

Source§

const NAME: &'static str = "signal.presence"

Source§

type Response = NoResponse

Source§

impl Body for ReactionAdd

Source§

const NAME: &'static str = "reaction.add"

Source§

type Response = Empty

Source§

impl Body for ReactionRemove

Source§

const NAME: &'static str = "reaction.remove"

Source§

type Response = Empty

Source§

impl Body for Reauth

Source§

const NAME: &'static str = "migration.reauth"

Source§

type Response = Admitted

Source§

impl Body for Redeem

Source§

const NAME: &'static str = "invite.redeem"

Source§

type Response = Admitted

Source§

impl Body for Register

Source§

const NAME: &'static str = "bot.register"

Source§

type Response = BotCard

Source§

impl Body for Reject

Source§

const NAME: &'static str = "membership.reject"

Source§

type Response = Empty

Source§

impl Body for Remove

Source§

const NAME: &'static str = "bot.remove"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::channel::Reorder

Source§

const NAME: &'static str = "channel.reorder"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::role::Reorder

Source§

const NAME: &'static str = "role.reorder"

Source§

type Response = Empty

Source§

impl Body for Request

Source§

const NAME: &'static str = "membership.request"

Source§

type Response = Admitted

Source§

impl Body for Resolve

Source§

const NAME: &'static str = "report.resolve"

Source§

type Response = Report

Source§

impl Body for Respond

Source§

const NAME: &'static str = "interaction.respond"

Source§

type Response = Replied

Source§

impl Body for Restore

Source§

const NAME: &'static str = "membership.restore"

Source§

type Response = Member

Source§

impl Body for Resume

Source§

const NAME: &'static str = "sync.resume"

Source§

type Response = Resumed

Source§

impl Body for Review

Source§

const NAME: &'static str = "report.review"

Source§

type Response = Report

Source§

impl Body for Revoke

Source§

const NAME: &'static str = "invite.revoke"

Source§

type Response = Empty

Source§

impl Body for RolesUpdate

Source§

const NAME: &'static str = "member.roles.update"

Source§

type Response = Member

Source§

impl Body for Rotations

Source§

const NAME: &'static str = "community.rotations"

Source§

type Response = RotationPage

Source§

impl Body for Send

Source§

const NAME: &'static str = "message.send"

Source§

type Response = Sent

Source§

impl Body for Set

Source§

const NAME: &'static str = "command.set"

Source§

type Response = Commands

Source§

impl Body for SettingsGet

Source§

const NAME: &'static str = "member.settings.get"

Source§

type Response = Settings

Source§

impl Body for SettingsUpdate

Source§

const NAME: &'static str = "member.settings.update"

Source§

type Response = Settings

Source§

impl Body for Signal

Source§

const NAME: &'static str = "voice.signal"

Source§

type Response = Empty

Source§

impl Body for Snapshot

Source§

const NAME: &'static str = "sync.snapshot"

Source§

type Response = SnapshotPage

Source§

impl Body for StatusSet

Source§

const NAME: &'static str = "member.status.set"

Source§

type Response = Member

Source§

impl Body for Suspend

Source§

const NAME: &'static str = "membership.suspend"

Source§

type Response = Member

Source§

impl Body for Target

Source§

const NAME: &'static str = "bot.get"

Source§

type Response = BotCard

Source§

impl Body for Timeout

Source§

const NAME: &'static str = "member.timeout"

Source§

type Response = Member

Source§

impl Body for Typing

Source§

const NAME: &'static str = "signal.typing"

Source§

type Response = NoResponse

Source§

impl Body for Unban

Source§

const NAME: &'static str = "member.unban"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::community::Update

Source§

const NAME: &'static str = "community.update"

Source§

type Response = ProfileResponse

Source§

impl Body for zaun_community_protocol::command::channel::Update

Source§

const NAME: &'static str = "channel.update"

Source§

type Response = Channel

Source§

impl Body for zaun_community_protocol::command::member::Update

Source§

const NAME: &'static str = "member.update"

Source§

type Response = Member

Source§

impl Body for zaun_community_protocol::command::role::Update

Source§

const NAME: &'static str = "role.update"

Source§

type Response = Role

Source§

impl Body for zaun_community_protocol::command::voice::Update

Source§

const NAME: &'static str = "voice.update"

Source§

type Response = Empty

Source§

impl Body for zaun_community_protocol::command::bot::Update

Source§

const NAME: &'static str = "bot.update"

Source§

type Response = BotCard

Source§

impl Body for Upload

Source§

const NAME: &'static str = "attachment.upload"

Source§

type Response = Uploading

Source§

impl Body for Uses

Source§

const NAME: &'static str = "invite.uses"

Source§

type Response = UsePage