backend/model/enum/
include_archived_seeds.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! [`IncludeArchivedSeeds`] enum.

use serde::{Deserialize, Serialize};
use typeshare::typeshare;

/// Indicates whether archived seeds should be returned in a seed query.
#[typeshare]
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
pub enum IncludeArchivedSeeds {
    #[serde(rename = "not_archived")]
    /// Return only seeds that have not been archived.
    NotArchived,
    #[serde(rename = "archived")]
    /// Return only archived seeds.
    Archived,
    #[serde(rename = "both")]
    /// Return all seeds
    Both,
}