pub trait ServiceProvider {
// Required methods
fn descriptor(&self) -> ProductDescriptor;
fn service(
&mut self,
path: &str,
products: Vec<Product>,
) -> (Result<Value, Vec<ServiceError>>, Vec<ServiceNotice>);
}Expand description
A function for a service.
Required Methods§
Sourcefn descriptor(&self) -> ProductDescriptor
fn descriptor(&self) -> ProductDescriptor
Returns a ProductDescriptor for the product this provider provides.