messagebird-async 0.0.2

Wrapper around the message bird API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// pub type MessageBirdResult<T> = std::result::Result<T, MessageBirdError>;

#[derive(Debug, Fail)]
pub enum MessageBirdError {
    #[fail(display = "invalid json format: {}", chunk)]
    FormatError { chunk: String },

    #[fail(display = "invalid paramter for type: {}", msg)]
    TypeError { msg: String },

    #[fail(display = "service return code: {}", code)]
    ServiceError { code: u32 },

    #[fail(display = "parsing failed")]
    ParseError,
}