pub struct SshHostRule {
pub host_key: String,
pub label: Option<String>,
pub known_hosts: Vec<SshKnownHost>,
}Fields§
§host_key: String§label: Option<String>§known_hosts: Vec<SshKnownHost>The known_hosts entries the user confirmed for this host key, one
per name it was added under (mur agent ssh allow --host): an alias
or another port can present the same key, and each name needs its own
line. Kept so the CLI can regenerate <agent home>/ssh/known_hosts on
every later allow / revoke. Never read by the runtime and never used
for matching: host_key is the only host identity. Empty for a rule
added by fingerprint alone.
Implementations§
Source§impl SshHostRule
impl SshHostRule
Sourcepub fn confirm_known_host(&mut self, kh: SshKnownHost) -> bool
pub fn confirm_known_host(&mut self, kh: SshKnownHost) -> bool
Add kh unless an identical entry is already confirmed. Returns
whether it was added.
Trait Implementations§
Source§impl Clone for SshHostRule
impl Clone for SshHostRule
Source§impl Debug for SshHostRule
impl Debug for SshHostRule
Source§impl<'de> Deserialize<'de> for SshHostRule
impl<'de> Deserialize<'de> for SshHostRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SshHostRule
impl PartialEq for SshHostRule
Source§impl Serialize for SshHostRule
impl Serialize for SshHostRule
impl StructuralPartialEq for SshHostRule
Auto Trait Implementations§
impl Forget for SshHostRule
impl Freeze for SshHostRule
impl Move for SshHostRule
impl RefUnwindSafe for SshHostRule
impl Send for SshHostRule
impl Sync for SshHostRule
impl Unpin for SshHostRule
impl UnsafeUnpin for SshHostRule
impl UnwindSafe for SshHostRule
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