Expand description
§About
The tinylog format is a minimal microblog format for the small web (Gemini, Spartan etc). This library implements a set of types useful for working with Tinylogs which can be readily converted to and from strings. This would be useful for automating adding entries or possibly in an aggregator type application.
§Usage
Parsing a Tinylog
from a String
and back again
use tinylog_gmi::Tinylog;
const TL: &'static str = include_str!("../test/tinylog.gmi");
let log = TL.parse::<Tinylog<NaiveTime>>().unwrap();
assert_eq!(log.entries.len(), 2);
assert_eq!(log.to_string(), TL);
Structs§
- Entry
- A Tinylog entry
- Tinylog
- A complete tinylog contains the header appearing above all entries and a collection of entries
Traits§
- Time
- An item which represents a moment in time with minute precision