pub fn read<T: SelfHref + Readable>(href: impl ToString) -> Result<T>
Expand description
Reads a STAC value from an href.
The format will be inferred from the href’s extension. If you want to specify the format, use Format::read.
§Examples
let item: stac::Item = stac_io::read("examples/simple-item.json").unwrap();