libmatrix-client/src/api/mod.rs

15 lines
302 B
Rust
Raw Normal View History

use serde::Deserialize;
use std::collections::HashMap;
2019-08-18 20:29:52 -07:00
pub mod client;
pub mod error;
pub mod methods;
2019-08-18 20:29:52 -07:00
pub type Result<T> = std::result::Result<T, error::ApiError>;
2019-08-18 20:29:52 -07:00
#[derive(Deserialize)]
pub struct VersionApiResp {
pub versions: Vec<String>,
pub unstable_features: HashMap<String, bool>,
2019-08-18 20:29:52 -07:00
}