Function read

Source
pub async fn read<T>(href: impl ToString) -> Result<T>
๐Ÿ‘ŽDeprecated: use stac instead of stac-async, which is deprecated and will receive no further updates
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("examples/simple-item.json").await.unwrap();