pub async fn add(
session: &mut Session,
key: &str,
label: Option<&str>,
) -> Result<String, CommandError>Expand description
Register the public key line key, named label or by its comment, and
return the id of the stored key.
ยงErrors
CommandError::FormInvalid for a malformed or already registered key,
or the server error.