synd-api 0.4.0-rc.1

syndicationd backend api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) struct FeedIdV1(String);

impl FeedIdV1 {
    pub fn new(url: impl AsRef<str>) -> Self {
        let url = url.as_ref();
        Self(format!("v1:feed:{url}"))
    }
}

impl From<FeedIdV1> for async_graphql::ID {
    fn from(v: FeedIdV1) -> Self {
        Self(v.0)
    }
}