libmatrix-client/src/api/mod.rs

20 lines
331 B
Rust
Raw Normal View History

2019-08-18 20:29:52 -07:00
use std::fmt;
#[derive(Debug, PartialEq)]
pub struct Client {}
impl Client{
pub fn new() -> Self {
Client {}
}
}
#[derive(Default)]
pub struct ApiError {}
impl fmt::Display for ApiError {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
write!(formatter, "an error occurred!")
}
}