20 lines
331 B
Rust
20 lines
331 B
Rust
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!")
|
|
}
|
|
}
|