#[cfg(feature = "location")]
pub mod location;
#[cfg(feature = "location")]
pub use location::*;
#[cfg(feature = "pike")]
pub mod pike;
#[cfg(feature = "pike")]
pub use pike::*;
#[cfg(feature = "product")]
pub mod product;
#[cfg(feature = "product")]
pub use product::*;
#[cfg(feature = "purchase-order")]
pub mod purchase_order;
#[cfg(feature = "purchase-order")]
pub use purchase_order::*;
#[cfg(feature = "client-reqwest")]
pub mod reqwest;
#[cfg(feature = "schema")]
pub mod schema;
#[cfg(feature = "schema")]
pub use schema::*;
use crate::error::ClientError;
use sawtooth_sdk::messages::batch::BatchList;
pub trait Client {
fn post_batches(
&self,
wait: u64,
batch_list: &BatchList,
service_id: Option<&str>,
) -> Result<(), ClientError>;
}
pub trait ClientFactory {
#[cfg(feature = "location")]
fn get_location_client(&self, url: String) -> Box<dyn location::LocationClient>;
#[cfg(feature = "pike")]
fn get_pike_client(&self, url: String) -> Box<dyn pike::PikeClient>;
#[cfg(feature = "product")]
fn get_product_client(&self, url: String) -> Box<dyn product::ProductClient>;
#[cfg(feature = "purchase-order")]
fn get_purchase_order_client(
&self,
url: String,
) -> Box<dyn purchase_order::PurchaseOrderClient>;
#[cfg(feature = "schema")]
fn get_schema_client(&self, url: String) -> Box<dyn schema::SchemaClient>;
}