etopay_api_types/api/user.rs
1use serde::{Deserialize, Serialize};
2
3/// Struct to upload the shares from SDK as Strings
4#[derive(Debug, Serialize, Deserialize, Clone)]
5#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
6pub struct PutSharesRequest {
7 pub backup_share: String,
8 pub recovery_share: String,
9}
10
11/// Struct to download the shares in SDK as Strings
12#[derive(Debug, Serialize, Deserialize, Clone)]
13#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
14pub struct GetShareResponse {
15 pub share: String,
16}