chatd 0.2.0

chatd is an implementation of an SSH server for real-time communication that serves a chat room instead of a shell and provides encrypted messaging over SSH.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::chat::{Command, User};

pub struct WorkflowContext {
    pub user: User,
    pub command_str: Option<String>,
    pub command: Option<Command>,
}

impl WorkflowContext {
    pub fn new(user: User) -> Self {
        Self {
            user,
            command_str: None,
            command: None,
        }
    }
}