pub struct Manifests { /* private fields */ }
Expand description
Handle for Podman Manifests.
Implementations§
Source§impl Manifests
impl Manifests
Sourcepub async fn create(&self, opts: &ManifestCreateOpts) -> Result<Manifest>
pub async fn create(&self, opts: &ManifestCreateOpts) -> Result<Manifest>
Create a manifest list.
Examples:
async {
use podman_api::Podman;
use podman_api::opts::ManifestCreateOpts;
let podman = Podman::unix("/run/user/1000/podman/podman.sock");
match podman
.manifests()
.create(
&ManifestCreateOpts::builder("my-manifest")
.images(["alpine"])
.build(),
)
.await
{
Ok(manifest) => { /* do something with the manifest */ }
Err(e) => eprintln!("{}", e),
}
};
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifests
impl !RefUnwindSafe for Manifests
impl Send for Manifests
impl Sync for Manifests
impl Unpin for Manifests
impl !UnwindSafe for Manifests
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more