openzeppelin_relayer/models/transaction/request/
stellar.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;

use crate::models::transaction::stellar_types::{MemoSpec, OperationSpec};

#[derive(Deserialize, Serialize, ToSchema)]
pub struct StellarTransactionRequest {
    pub source_account: String,
    pub network: String,
    #[schema(max_length = 100)]
    pub operations: Vec<OperationSpec>,
    #[schema(nullable = true)]
    pub memo: Option<MemoSpec>,
    #[schema(nullable = true)]
    pub valid_until: Option<String>,
}