pub trait CacheableModels: Clone + Debug {
Show 14 associated items
type Channel: CacheableChannel;
type CurrentUser: CacheableCurrentUser;
type Emoji: CacheableEmoji;
type Guild: CacheableGuild;
type GuildIntegration: CacheableGuildIntegration;
type GuildScheduledEvent: CacheableGuildScheduledEvent;
type Member: CacheableMember;
type Message: CacheableMessage;
type Presence: CacheablePresence;
type Role: CacheableRole;
type StageInstance: CacheableStageInstance;
type Sticker: CacheableSticker;
type User: CacheableUser;
type VoiceState: CacheableVoiceState;
}
Expand description
Super-trait for the generic cached representations of Discord API models.
Required Associated Types§
Sourcetype Channel: CacheableChannel
type Channel: CacheableChannel
The cached Channel
model representation.
Sourcetype CurrentUser: CacheableCurrentUser
type CurrentUser: CacheableCurrentUser
The cached CurrentUser
model representation.
Sourcetype Emoji: CacheableEmoji
type Emoji: CacheableEmoji
The cached Emoji
model representation.
Sourcetype Guild: CacheableGuild
type Guild: CacheableGuild
The cached Guild
model representation.
Sourcetype GuildIntegration: CacheableGuildIntegration
type GuildIntegration: CacheableGuildIntegration
The cached GuildIntegration
model representation.
Sourcetype GuildScheduledEvent: CacheableGuildScheduledEvent
type GuildScheduledEvent: CacheableGuildScheduledEvent
The cached [GuildScheduledEvent
model representation.
Sourcetype Member: CacheableMember
type Member: CacheableMember
The cached Member
model representation.
Sourcetype Message: CacheableMessage
type Message: CacheableMessage
The cached Message
model representation.
Sourcetype Presence: CacheablePresence
type Presence: CacheablePresence
The cached Presence
model representation.
Sourcetype Role: CacheableRole
type Role: CacheableRole
The cached Role
model representation.
Sourcetype StageInstance: CacheableStageInstance
type StageInstance: CacheableStageInstance
The cached StageInstance
model representation.
Sourcetype Sticker: CacheableSticker
type Sticker: CacheableSticker
The cached Sticker
model representation.
Sourcetype User: CacheableUser
type User: CacheableUser
The cached User
model representation.
Sourcetype VoiceState: CacheableVoiceState
type VoiceState: CacheableVoiceState
The cached VoiceState
model representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.