1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
use std::collections::HashMap;
/// Define shared behaviour across services
pub trait ConfigService {
    /// The base URL for your service instance.
    fn set_service_url(&mut self, service_url: String);

    /// Additional headers to use in your request.
    fn set_default_headers(
        &mut self,
        headers: HashMap<String, String>,
    ) -> Result<(), anyhow::Error>;

    /// 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 enable_ibm_data_collection(&mut self);

    /// Disable Data collection (IBM Cloud).
    fn disable_ibm_data_collection(&mut self);
}