crier

RSS and Atom feed aggregator
Info | Log | Files | Refs | README

io.rs (322B)


      1 use atom_syndication::Feed;
      2 
      3 pub enum FeedMethod {
      4     Read,
      5     Create,
      6     Update,
      7 }
      8 
      9 pub trait FeedGet {
     10     fn get(&self, s: &str, method: Option<FeedMethod>) -> Result<Feed, u64>;
     11 }
     12 
     13 pub trait FeedPut {
     14     fn put(&self, feed: &Feed, s: &str, method: Option<FeedMethod>) -> u64;
     15 }
     16 
     17 #[cfg(feature = "fs")]
     18 pub mod fs;