ruma-common 0.18.0

Common types for other ruma crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(unexpected_cfgs)]

use ruma_common::api::response;

#[derive(PartialEq)] // Make sure attributes work
#[response]
pub struct Response {
    pub flag: bool,
}

fn main() {
    let res1 = Response { flag: false };
    let res2 = res1.clone();

    assert_eq!(res1, res2);
}