pub struct Secret { /* private fields */ }
Expand description
Interface for accessing and manipulating Podman Secret.
Implementations§
Source§impl Secret
impl Secret
Sourcepub async fn inspect(&self) -> Result<SecretInfoReport>
pub async fn inspect(&self) -> Result<SecretInfoReport>
Inspect this secret returning detailed information about it.
Examples:
async {
use podman_api::Podman;
let podman = Podman::unix("/run/user/1000/podman/podman.sock");
match podman.secrets().get("79c93f220e3e").inspect().await {
Ok(info) => println!("{:?}", info),
Err(e) => eprintln!("{}", e),
}
};
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Secret
impl !RefUnwindSafe for Secret
impl Send for Secret
impl Sync for Secret
impl Unpin for Secret
impl !UnwindSafe for Secret
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