Skip to main content

nominal_api_proto/proto/
nominal.checklists.v1.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct ChecklistSearchQuery {
4    #[prost(
5        oneof = "checklist_search_query::Query",
6        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15"
7    )]
8    pub query: ::core::option::Option<checklist_search_query::Query>,
9}
10/// Nested message and enum types in `ChecklistSearchQuery`.
11pub mod checklist_search_query {
12    #[derive(Clone, PartialEq, ::prost::Message)]
13    pub struct QueryList {
14        #[prost(message, repeated, tag = "1")]
15        pub queries: ::prost::alloc::vec::Vec<super::ChecklistSearchQuery>,
16    }
17    #[derive(Clone, PartialEq, ::prost::Oneof)]
18    pub enum Query {
19        #[prost(message, tag = "1")]
20        And(QueryList),
21        #[prost(message, tag = "2")]
22        Or(QueryList),
23        #[prost(message, tag = "3")]
24        Not(::prost::alloc::boxed::Box<super::ChecklistSearchQuery>),
25        #[prost(string, tag = "4")]
26        SearchText(::prost::alloc::string::String),
27        #[prost(string, tag = "5")]
28        Label(::prost::alloc::string::String),
29        #[prost(message, tag = "6")]
30        Labels(super::super::super::types::LabelsFilter),
31        #[prost(message, tag = "7")]
32        Property(super::super::super::types::Property),
33        #[prost(message, tag = "8")]
34        Properties(super::super::super::types::PropertiesFilter),
35        #[prost(string, tag = "9")]
36        AuthorRid(::prost::alloc::string::String),
37        #[prost(string, tag = "10")]
38        AssigneeRid(::prost::alloc::string::String),
39        #[prost(bool, tag = "11")]
40        IsPublished(bool),
41        #[prost(string, tag = "12")]
42        WorkspaceRid(::prost::alloc::string::String),
43        #[prost(bool, tag = "13")]
44        AuthoredByCaller(bool),
45        #[prost(message, tag = "14")]
46        Authors(super::super::super::types::UserRidsFilter),
47        #[prost(bool, tag = "15")]
48        IsArchived(bool),
49    }
50}
51#[derive(Clone, Copy, PartialEq, ::prost::Message)]
52pub struct ChecklistSortOptions {
53    #[prost(bool, tag = "1")]
54    pub is_descending: bool,
55    #[prost(enumeration = "ChecklistSortField", tag = "2")]
56    pub field: i32,
57}
58#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
59#[repr(i32)]
60pub enum ChecklistSortField {
61    Unspecified = 0,
62    CreatedAt = 1,
63    LastUsed = 2,
64    UpdatedAt = 3,
65}
66impl ChecklistSortField {
67    /// String value of the enum field names used in the ProtoBuf definition.
68    ///
69    /// The values are not transformed in any way and thus are considered stable
70    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
71    pub fn as_str_name(&self) -> &'static str {
72        match self {
73            Self::Unspecified => "CHECKLIST_SORT_FIELD_UNSPECIFIED",
74            Self::CreatedAt => "CHECKLIST_SORT_FIELD_CREATED_AT",
75            Self::LastUsed => "CHECKLIST_SORT_FIELD_LAST_USED",
76            Self::UpdatedAt => "CHECKLIST_SORT_FIELD_UPDATED_AT",
77        }
78    }
79    /// Creates an enum from field names used in the ProtoBuf definition.
80    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
81        match value {
82            "CHECKLIST_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
83            "CHECKLIST_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
84            "CHECKLIST_SORT_FIELD_LAST_USED" => Some(Self::LastUsed),
85            "CHECKLIST_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
86            _ => None,
87        }
88    }
89}