pub struct TrustedPublicKey {
pub fingerprint: &'static str,
pub bytes: [u8; 32],
}Expand description
One public key the host will trust, named by its SHA-256 fingerprint. 宿主愿意信任的一个公钥,以它的 SHA-256 指纹命名。
Fields§
§fingerprint: &'static strSHA-256 hex of bytes; a key whose bytes do not hash to it is rejected.
bytes 的 SHA-256 十六进制;字节哈希对不上的公钥会被拒绝。
bytes: [u8; 32]Raw 32-byte Ed25519 public key. 32 字节的 Ed25519 原始公钥。
Implementations§
Trait Implementations§
Source§impl Clone for TrustedPublicKey
impl Clone for TrustedPublicKey
impl Copy for TrustedPublicKey
Source§impl Debug for TrustedPublicKey
impl Debug for TrustedPublicKey
impl Eq for TrustedPublicKey
Source§impl PartialEq for TrustedPublicKey
impl PartialEq for TrustedPublicKey
impl StructuralPartialEq for TrustedPublicKey
Auto Trait Implementations§
impl Freeze for TrustedPublicKey
impl RefUnwindSafe for TrustedPublicKey
impl Send for TrustedPublicKey
impl Sync for TrustedPublicKey
impl Unpin for TrustedPublicKey
impl UnsafeUnpin for TrustedPublicKey
impl UnwindSafe for TrustedPublicKey
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