pub trait Backend:
SearchClient<Error = Error>
+ CollectionSearchClient<Error = Error>
+ TransactionClient<Error = Error>
+ Clone
+ Sync
+ Send
+ 'static {
// Required methods
fn has_item_search(&self) -> bool;
fn has_filter(&self) -> bool;
}Expand description
Storage backend for a STAC API.
This trait combines SearchClient, CollectionSearchClient, and
TransactionClient with backend-specific capability flags.
Required Methods§
Sourcefn has_item_search(&self) -> bool
fn has_item_search(&self) -> bool
Returns true if this backend has item search capabilities.
§Examples
use stac_server::{MemoryBackend, Backend};
assert!(MemoryBackend::new().has_item_search());Sourcefn has_filter(&self) -> bool
fn has_filter(&self) -> bool
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.