pub trait DelegateChatModeration: JmapBackend {
type Target: ChatModeration<CallerCtx = Self::CallerCtx, Error = Self::Error>;
// Required method
fn chat_moderation(&self) -> &Self::Target;
}Expand description
Forward every ChatModeration method to chat_moderation’s target.
Implement this instead of ChatModeration; a type implements one or the other, never both.
Required Associated Types§
Sourcetype Target: ChatModeration<CallerCtx = Self::CallerCtx, Error = Self::Error>
type Target: ChatModeration<CallerCtx = Self::CallerCtx, Error = Self::Error>
The backend that answers the ChatModeration methods.
Required Methods§
Sourcefn chat_moderation(&self) -> &Self::Target
fn chat_moderation(&self) -> &Self::Target
The target, usually the wrapped backend.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".