[][src]Struct aiven_rs::service::ServiceElastiSearchApi

pub struct ServiceElastiSearchApi { /* fields omitted */ }

Methods

impl ServiceElastiSearchApi[src]

pub async fn delete_index<'_, '_, '_, '_>(
    &'_ self,
    project: &'_ str,
    service_name: &'_ str,
    index_name: &'_ str
) -> Result<(), AivenError>
[src]

Describe something here...

Arguments

  • Arg1 -

Examples

Basic usage:

// Your example here

Delete an Elasticsearch index

https://api.aiven.io/doc/#api-Service_-_Elasticsearch

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
        .service_elasticsearch()
        .delete_index("project-name", "service-name", "index-to-delete")
        .await?;
Ok(())
}

pub async fn list_indexes<'_, '_, '_>(
    &'_ self,
    project: &'_ str,
    service_name: &'_ str
) -> Result<Indexes, AivenError>
[src]

pub async fn set_acl_configuration<'_, '_, '_, '_>(
    &'_ self,
    project: &'_ str,
    service_name: &'_ str,
    acl_config: &'_ ElasticSearchACLConfig
) -> Result<ElasticSearchACLConfig, AivenError>
[src]

pub async fn show_acl_configuration<'_, '_, '_>(
    &'_ self,
    project: &'_ str,
    service_name: &'_ str
) -> Result<ElasticSearchACLConfig, AivenError>
[src]

pub async fn update_acl_configuration<'_, '_, '_, '_>(
    &'_ self,
    project: &'_ str,
    service_name: &'_ str,
    acl_config: &'_ ElasticSearchACLConfig
) -> Result<ElasticSearchACLConfig, AivenError>
[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>,