Trait FromNdjsonPath

Source
pub trait FromNdjsonPath:
    FromNdjson
    + FromJsonPath
    + SelfHref {
    // Provided method
    fn from_ndjson_path(path: impl AsRef<Path>) -> Result<Self> { ... }
}
Expand description

Create a STAC object from newline-delimited JSON.

Provided Methods§

Source

fn from_ndjson_path(path: impl AsRef<Path>) -> Result<Self>

Reads newline-delimited JSON data from a file.

§Examples
use stac::ItemCollection;
use stac_io::FromNdjsonPath;

let item_collection = ItemCollection::from_ndjson_path("data/items.ndjson").unwrap();

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromNdjsonPath for Value

Source§

fn from_ndjson_path(path: impl AsRef<Path>) -> Result<Self>

Source§

impl FromNdjsonPath for Catalog

Source§

impl FromNdjsonPath for Collection

Source§

impl FromNdjsonPath for Item

Source§

impl FromNdjsonPath for ItemCollection

Source§

fn from_ndjson_path(path: impl AsRef<Path>) -> Result<Self>

Implementors§