mxlink 1.15.0

A library for connecting (linking) to the Matrix Client Server API (for building bots, etc.)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use matrix_sdk::ruma::OwnedEventId;

#[derive(Debug, Clone)]
pub enum ResponseType {
    InRoom,
    Reply(OwnedEventId),
    InThread(super::thread::Info),
}

impl ResponseType {
    pub fn as_str(&self) -> &str {
        match self {
            ResponseType::InRoom => "InRoom",
            ResponseType::Reply(_) => "Reply",
            ResponseType::InThread(_) => "InThread",
        }
    }
}