pub async fn service_register(&self, service: &Service) -> Result<String> {
        self.stream_json::<_, Service>(
            "POST".to_string(),
            "/services/register".to_string(),
            service,
        )
        .await
        .map(|serv_resp: Service| serv_resp.hash)
    }
/// Useful to register a new service to the API
Useful to register a new service to the API
Useful to register a new service to the API
pub async fn service_register(&self, service: &Service) -> Result<String> {
        self.stream_json::<_, Service>(
            "POST".to_string(),
            "/services/register".to_string(),
            service,
        )
        .await
        .map(|serv_resp: Service| serv_resp.hash)
    }
pub async fn service_register ( & self , service : & Service ) -> Result < String > { self . stream_json :: < _ , Service > ( " " . to_string ( ) , " " . to_string ( ) , service , ) . await . map ( | serv_resp : Service | serv_resp . hash ) }
Useful to register a new service to the API
Useful to register a new service to the API
&self
service
&Service
&self
service
&Service