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,

Object Safety§

This trait is not object safe.

Implementors§