[][src]Struct aiven_rs::key_mgmt::ProjectKeyManagementApi

pub struct ProjectKeyManagementApi { /* fields omitted */ }

Implementations

impl ProjectKeyManagementApi[src]

pub async fn retrieve_ca_cert(
    &self,
    project: &str
) -> Result<ResCertificate, AivenError>
[src]

Claim a credit code

https://api.aiven.io/doc/#operation/ProjectKmsGetCA

Arguments

  • project - Project name
  • code - Credit code

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");
let response = client
        .project_key_management()
        .retrieve_ca_cert("my-project")
        .await?;
Ok(())
}

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> Instrument for T[src]

impl<T> Instrument 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>,