Trait ibm_watson::core::services::ConfigService [−][src]
pub trait ConfigService {
fn set_service_url(&mut self, service_url: String);
fn set_default_headers(
&mut self,
headers: HashMap<String, String>
) -> Result<(), Error>;
fn enable_ibm_data_collection(&mut self);
fn disable_ibm_data_collection(&mut self);
}Expand description
Define shared behaviour across services
Required methods
fn set_service_url(&mut self, service_url: String)
fn set_service_url(&mut self, service_url: String)
The base URL for your service instance.
Additional headers to use in your request.
fn enable_ibm_data_collection(&mut self)
fn enable_ibm_data_collection(&mut self)
Enable Data collection (IBM Cloud), Text to Speech service instances managed on IBM Cloud that are not part of Premium plans collect data about API requests and their results.
fn disable_ibm_data_collection(&mut self)
fn disable_ibm_data_collection(&mut self)
Disable Data collection (IBM Cloud).
