pub fn is_prompt_signer_source<T>(string: T) -> Result<(), String>
where
    T: AsRef<str> + Display,
{
    if string.as_ref() == ASK_KEYWORD {
        return Ok(());
    }
    match parse_signer_source(string.as_ref())
        .map_err(|err| format!("{}", err))?
        .kind
    {
        SignerSourceKind::Prompt => Ok(()),
        _ => Err(format!(
            "Unable to parse input as `prompt:` URI scheme or `ASK` keyword: {}",
            string
        )),
    }
}
// Return an error if a `SignerSourceKind::Prompt` cannot be parsed
Return an error if a `SignerSourceKind::Prompt` cannot be parsed
Return an error if a ` SignerSourceKind :: Prompt ` cannot be parsed
pub fn is_prompt_signer_source<T>(string: T) -> Result<(), String>
where
    T: AsRef<str> + Display,
{
    if string.as_ref() == ASK_KEYWORD {
        return Ok(());
    }
    match parse_signer_source(string.as_ref())
        .map_err(|err| format!("{}", err))?
        .kind
    {
        SignerSourceKind::Prompt => Ok(()),
        _ => Err(format!(
            "Unable to parse input as `prompt:` URI scheme or `ASK` keyword: {}",
            string
        )),
    }
}
pub fn is_prompt_signer_source < T > ( string : T ) -> Result < ( ) , String > where T : AsRef < str > + Display , { if string . as_ref ( ) == ASK_KEYWORD { return Ok ( ( ) ) ; } match parse_signer_source ( string . as_ref ( ) ) . map_err ( | err | format ! ( " " err ) ) ? . kind { SignerSourceKind :: Prompt => Ok ( ( ) ) , _ => Err ( format ! ( " " string ) ) , } }
Return an error if a `SignerSourceKind::Prompt` cannot be parsed
Return an error if a ` SignerSourceKind :: Prompt ` cannot be parsed
string
T