solrstice 0.15.0

A Solr 8+ client
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::error::Error;
use async_trait::async_trait;
use dyn_clone::DynClone;
use std::borrow::Cow;

/// SolrHost specifies how to connect to a solr server.
#[async_trait]
pub trait SolrHost: DynClone {
    async fn get_solr_node<'a>(&'a self) -> Result<Cow<'a, str>, Error>;
}
dyn_clone::clone_trait_object!(SolrHost);