Skip to main content

SerializableDestination

Trait SerializableDestination 

Source
pub trait SerializableDestination:
    MessageDestination
    + Serialize
    + Deserialize {
    // Required method
    fn as_message_destination(&self) -> &dyn MessageDestination;
}

Required Methods§

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn SerializableDestination + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn SerializableDestination + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn SerializableDestination + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn SerializableDestination + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl SerializableDestination for DesktopNotificationReceiver

Available on crate feature desktop only.
Source§

impl SerializableDestination for DiscordDestination

Available on crate feature discord only.
Source§

impl SerializableDestination for FileDestination

Source§

impl SerializableDestination for MailDestination

Available on crate feature mail only.
Source§

impl SerializableDestination for TelegramDestination

Available on crate feature telegram only.