pub struct SshRule {
pub rule_expires: Option<DateTime<Utc>>,
pub principals: Vec<SshPrincipal>,
pub ssh_users: BTreeMap<String, String>,
pub action: Option<SshAction>,
pub accept_env: Vec<String>,
}Expand description
A single SSH policy rule. Mirrors tailcfg.SSHRule.
Fields§
§rule_expires: Option<DateTime<Utc>>If set, the rule no longer matches once now is at/after this time.
principals: Vec<SshPrincipal>Principals; the rule matches a connection if any of these match it.
ssh_users: BTreeMap<String, String>Requested-SSH-user → local-user mapping. See module docs for "*" / "=" / empty semantics.
action: Option<SshAction>The action to take when this rule matches. None means the rule never matches.
accept_env: Vec<String>Allowlist of environment variable names the client may forward.
Trait Implementations§
impl Eq for SshRule
impl StructuralPartialEq for SshRule
Auto Trait Implementations§
impl Freeze for SshRule
impl RefUnwindSafe for SshRule
impl Send for SshRule
impl Sync for SshRule
impl Unpin for SshRule
impl UnsafeUnpin for SshRule
impl UnwindSafe for SshRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.