webfinger_rs/types/
rel.rs

1use nutype::nutype;
2
3/// Link relation type
4///
5/// <https://www.rfc-editor.org/rfc/rfc7033.html#section-4.4.4.1>
6#[nutype(derive(
7    Debug,
8    Display,
9    Clone,
10    From,
11    Into,
12    FromStr,
13    Display,
14    Serialize,
15    Deserialize,
16    AsRef,
17    Deref,
18    PartialEq,
19    Eq,
20))]
21pub struct Rel(String);