Function stac_async::read

source ·
pub async fn read<T>(href: impl ToString) -> Result<T>
Expand description

Reads a STAC value from an href.

The href can be a url or a filesystem path.

§Examples

let item: stac::Item = stac_async::read("data/simple-item.json").await.unwrap();