gaze-cli 0.12.0

Gaze command-line interface
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

use crate::error::RestoreWarning;

#[derive(Deserialize)]
pub(crate) struct RestoreRequest {
    pub(crate) session_blob: String,
    pub(crate) text: String,
}

#[derive(Serialize)]
pub(crate) struct RestoreResponse {
    pub(crate) text: String,
    #[serde(skip_serializing_if = "Vec::is_empty")]
    pub(crate) restore_warning: Vec<RestoreWarning>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub(crate) restore_telemetry: Option<gaze::RestoreTelemetry>,
}