(resp: CoreSessionResponse)
| 119 | |
| 120 | impl From<CoreSessionResponse> for SessionResponse { |
| 121 | fn from(resp: CoreSessionResponse) -> Self { |
| 122 | Self { |
| 123 | id: resp.id, |
| 124 | name: resp.name, |
| 125 | shell_type: format!("{:?}", resp.shell_type), |
| 126 | cwd: resp.cwd, |
| 127 | pid: resp.pid, |
| 128 | status: resp.status, |
| 129 | cols: resp.cols, |
| 130 | rows: resp.rows, |
| 131 | connection_id: None, |
| 132 | source: format_session_source(&resp.source), |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | #[derive(Debug, Clone, Serialize, Deserialize)] |
nothing calls this directly
no test coverage detected