podman_client/secrets/
exists.rs

1use http_body_util::Empty;
2use hyper::body::Bytes;
3
4use crate::{
5    client::Client,
6    models::{
7        connection::SendRequestOptions, lib::Error, podman::secrets::exists::SecretExistsOptions,
8    },
9};
10
11impl Client {
12    pub async fn secret_exists(&self, options: SecretExistsOptions<'_>) -> Result<(), Error> {
13        self.send_request::<_, (), ()>(SendRequestOptions {
14            method: "GET",
15            path: &["/libpod/secrets/", options.name, "/exists"].concat(),
16            header: None,
17            body: Empty::<Bytes>::new(),
18        })
19        .await?;
20
21        Ok(())
22    }
23}