ibmcloud-core-0.1.3 has been yanked.
IBM Cloud Core SDK

This crate is an abstraction from de api referenced in docs.
The first abstraction is about the Identity Manager: https://cloud.ibm.com/apidocs/iam-identity-token-api.json
Single implementation of Authenticate with Token and API key:
Dependencies
[dependencies]
tokio = { version = "1", features = ["full"] }
ibmcloud-core = "0.1.2"
Main.rs
use ibmcloud_core::authenticators::token_api::{AuthenticatorApiClient, TokenApiKeyRequest, ResponseType};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let auth = AuthenticatorApiClient::new("https://iam.cloud.ibm.com/identity/token".to_string());
let req = TokenApiKeyRequest::new("<YOUR-API-key>".to_string());
let result = auth.authenticate(req).await?;
match result{
ResponseType::Ok(token)=>{
println!("{:?}",token.get_access_token());
}
ResponseType::Err(e)=>{
println!("{:?}",e);
}
}
Ok(())
}