pub trait SshSigningKeyUploader: Send + Sync {
// Required method
fn upload_signing_key(
&self,
access_token: &str,
public_key: &str,
title: &str,
) -> impl Future<Output = Result<String, PlatformError>> + Send;
}Expand description
Upload an SSH signing key to a platform (e.g., GitHub) for commit verification.
Usage:
ⓘ
let key_id = uploader.upload_signing_key(
&access_token,
"ssh-ed25519 AAAA...",
"auths/main (device-abc123 MacBook)"
).await?;
println!("Uploaded key: {}", key_id);Required Methods§
Sourcefn upload_signing_key(
&self,
access_token: &str,
public_key: &str,
title: &str,
) -> impl Future<Output = Result<String, PlatformError>> + Send
fn upload_signing_key( &self, access_token: &str, public_key: &str, title: &str, ) -> impl Future<Output = Result<String, PlatformError>> + Send
Upload an SSH signing key to GitHub.
Args:
access_token: OAuth token withwrite:ssh_signing_keyscopepublic_key: SSH public key in OpenSSH format (ssh-ed25519 AAAA…)title: Human-readable title for the key in GitHub UI (e.g., “auths/main (MacBook)”)
Returns: Key ID from GitHub on success, or PlatformError on failure
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.