pub struct TrustedKey {
pub name: Option<String>,
pub actor_id: String,
pub key: [u8; 32],
}Expand description
One line of the trusted-keys file: a public key the node accepts, and optionally the channel name its holder is allowed to speak as.
Fields§
§name: Option<String>Operator-assigned channel name this key may act as, when the line
carries one. None = key trusted, name unconstrained (the
pre-existing behaviour, and what a bare hex line still means).
actor_id: StringActor id (hex): the git push principal, and the key_id a
signature carries. Always derived from the key, never from the
name — so adding a name column cannot shift push attribution.
key: [u8; 32]The raw ed25519 public key.
Trait Implementations§
Source§impl Clone for TrustedKey
impl Clone for TrustedKey
Source§fn clone(&self) -> TrustedKey
fn clone(&self) -> TrustedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustedKey
impl Debug for TrustedKey
Source§impl PartialEq for TrustedKey
impl PartialEq for TrustedKey
Source§fn eq(&self, other: &TrustedKey) -> bool
fn eq(&self, other: &TrustedKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TrustedKey
impl StructuralPartialEq for TrustedKey
Auto Trait Implementations§
impl Freeze for TrustedKey
impl RefUnwindSafe for TrustedKey
impl Send for TrustedKey
impl Sync for TrustedKey
impl Unpin for TrustedKey
impl UnsafeUnpin for TrustedKey
impl UnwindSafe for TrustedKey
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