You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: verify.rs
    path of file: ./repos/ockam/implementations/rust/ockam/ockam_command/src/credential
    
    the code of the file until where you have to start completion: use std::path::PathBuf;
use std::sync::Arc;

use clap::Args;
use colorful::Colorful;
use miette::{miette, IntoDiagnostic};
use tokio::{sync::Mutex, try_join};

use ockam::identity::models
    
    async fn async_run(&self, opts: CommandGlobalOpts) -> miette::Result<()> {
        let (is_valid, plain_text) = match verify_credential(
            &opts,
            self.issuer(),
            &self.credential,
            &self.credential_path,
        )
        .await
        {
            Ok(_) => (true, fmt_ok!("Credential is valid")),
            Err(e) => (
                false,
                fmt_err!("Credential is not valid\n") + &fmt_log!("{}", e),
            ),
        };

        opts.terminal
            .stdout()
            .plain(plain_text)
            .json(serde_json::json!({ "is_valid": is_valid }))
            .machine(is_valid.to_string())
            .write_line()?;

        Ok(())
    }