WecomMessage

Trait WecomMessage 

Source
pub trait WecomMessage {
    // Required methods
    fn msg_type(&self) -> MessageType;
    fn key(&self) -> String;

    // Provided method
    fn value(&self) -> impl Serialize
       where Self: Serialize { ... }
}

Required Methods§

Source

fn msg_type(&self) -> MessageType

Source

fn key(&self) -> String

Provided Methods§

Source

fn value(&self) -> impl Serialize
where Self: Serialize,

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§