[][src]Struct aiven_rs::AivenClient

pub struct AivenClient { /* fields omitted */ }

Implementations

impl AivenClient[src]

pub fn new<T>(base_url: T, version: T) -> AivenClient where
    T: Into<String>, 
[src]

Create a new basic client with just url and version.

Use this client in situations where you don't need to use the authentication token.

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::new("https://api.aiven.io", "v1");
Ok(())
}

pub fn from_token<T>(base_url: T, version: T, token: T) -> AivenClient where
    T: Into<String>, 
[src]

Create a new basic client with url, version and token.

Use this client in situations where you need to use the authentication token.

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
Ok(())
}

pub fn cloud(&self) -> CloudApi[src]

Access all the cloud APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let cloud_api = client.cloud();
// use cloud_api from here on
Ok(())
}

pub fn user(&self) -> UserApi[src]

Access all the user APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let user_api = client.user();
// use user_api from here on
Ok(())
}

pub fn project(&self) -> ProjectApi[src]

Access all the user APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let project_api = client.project();
// use project_api from here on
Ok(())
}

pub fn service(&self) -> ServiceApi[src]

Access all the user APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_api = client.service();
// use service_api from here on
Ok(())
}

pub fn service_integrations(&self) -> ServiceIntegrationsApi[src]

Access all the service integratins APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_integrations_api = client.service_integrations();
// use service_integrations_api from here on
Ok(())
}

pub fn payment(&self) -> PaymentApi[src]

Access all the payment APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let payment_api = client.payment();
// use payment_api from here on
Ok(())
}

pub fn project_billing(&self) -> ProjectBillingApi[src]

Access all the project billing APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let project_billing_api = client.project_billing();
// use project_billing_api from here on
Ok(())
}

pub fn project_key_management(&self) -> ProjectKeyManagementApi[src]

Access all the project key management APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let project_key_management_api = client.project_key_management();
// use project_key_management_api from here on
Ok(())
}

pub fn service_elasticsearch(&self) -> ServiceElastiSearchApi[src]

Access all the elasticsearch service APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_elasticsearch_api = client.service_elasticsearch();
// use service_elasticsearch_api from here on
Ok(())
}

pub fn service_kafka(&self) -> ServiceKafkaApi[src]

Access all the kafka service APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_kafka_api = client.service_kafka();
// use service_kafka_api from here on
Ok(())
}

pub fn service_kafka_mirrormaker(&self) -> ServiceKafkaMirrorMaker[src]

Access all the kafka service APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_kafka_api = client.service_kafka_mirrormaker();
// use service_mirrormaker_api from here on
Ok(())
}

pub fn service_mysql(&self) -> ServiceMysqlApi[src]

Access all the mysql service APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_mysql_api = client.service_mysql();
// use service_mysql_api from here on
Ok(())
}

pub fn service_postgres(&self) -> ServicePostgresApi[src]

Access all the postgres service APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let service_postgres_api = client.service_postgres();
// use service_postgres_api from here on
Ok(())
}

pub fn ticket(&self) -> TicketApi[src]

Access all customer support ticket related APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let ticket_api = client.ticket();
// use ticket_api from here on
Ok(())
}

pub fn account(&self) -> AccountApi[src]

Access all account related APIs

Examples

Basic usage:

#[tokio::main]
async fn main()-> Result<(), Box<dyn std::error::Error>>{
let client = aiven_rs::AivenClient::from_token("https://api.aiven.io", "v1", "aiven-token");
let ticket_api = client.account();
// use account_api from here on
Ok(())
}

Trait Implementations

impl Debug for AivenClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,