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