fediverse 0.1.8

Just toying with the W3C ActivityStream & ActivityPub specs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq)]
pub enum TypeError {
    #[error("Value out of bound (expected minimum of {min:?}, found {found:?})")]
    OutOfBoundsMin { min: String, found: String },

    #[error("Value out of bound (expected maximum of {max:?}, found {found:?})")]
    OutOfBoundsMax { max: String, found: String },

    #[error("Unable to parse string as url")]
    UrlParse(#[from] url::ParseError),
}