CacheableModels

Trait CacheableModels 

Source
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§

Source

type Channel: CacheableChannel

The cached Channel model representation.

Source

type CurrentUser: CacheableCurrentUser

The cached CurrentUser model representation.

Source

type Emoji: CacheableEmoji

The cached Emoji model representation.

Source

type Guild: CacheableGuild

The cached Guild model representation.

Source

type GuildIntegration: CacheableGuildIntegration

The cached GuildIntegration model representation.

Source

type GuildScheduledEvent: CacheableGuildScheduledEvent

The cached [GuildScheduledEvent model representation.

Source

type Member: CacheableMember

The cached Member model representation.

Source

type Message: CacheableMessage

The cached Message model representation.

Source

type Presence: CacheablePresence

The cached Presence model representation.

Source

type Role: CacheableRole

The cached Role model representation.

Source

type StageInstance: CacheableStageInstance

The cached StageInstance model representation.

Source

type Sticker: CacheableSticker

The cached Sticker model representation.

Source

type User: CacheableUser

The cached User model representation.

Source

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.

Implementors§