pub struct Pairing {
pub enabled: bool,
pub role: Option<Role>,
pub ttl: Option<Dur>,
}Expand description
Pairing-code login. The code is a 6-digit value derived
from a per-process random seed and the current 60-second window — shown
only to operators (pairing.code), verified with the previous window’s
grace, rate-limited, and exchanged (Pair) for a high-entropy session
token that lives in memory until ttl (or restart).
Fields§
§enabled: bool§role: Option<Role>The role a paired session gets: operator (default — whoever can read
the code can already see the operator console) or user.
ttl: Option<Dur>Session-token lifetime (default 12h).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pairing
impl<'de> Deserialize<'de> for Pairing
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
impl StructuralPartialEq for Pairing
Auto Trait Implementations§
impl Freeze for Pairing
impl RefUnwindSafe for Pairing
impl Send for Pairing
impl Sync for Pairing
impl Unpin for Pairing
impl UnsafeUnpin for Pairing
impl UnwindSafe for Pairing
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