nominal-api-proto 0.1501.0

Protobuf/gRPC API bindings for the Nominal platform
Documentation
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChecklistSearchQuery {
    #[prost(
        oneof = "checklist_search_query::Query",
        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15"
    )]
    pub query: ::core::option::Option<checklist_search_query::Query>,
}
/// Nested message and enum types in `ChecklistSearchQuery`.
pub mod checklist_search_query {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct QueryList {
        #[prost(message, repeated, tag = "1")]
        pub queries: ::prost::alloc::vec::Vec<super::ChecklistSearchQuery>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Query {
        #[prost(message, tag = "1")]
        And(QueryList),
        #[prost(message, tag = "2")]
        Or(QueryList),
        #[prost(message, tag = "3")]
        Not(::prost::alloc::boxed::Box<super::ChecklistSearchQuery>),
        #[prost(string, tag = "4")]
        SearchText(::prost::alloc::string::String),
        #[prost(string, tag = "5")]
        Label(::prost::alloc::string::String),
        #[prost(message, tag = "6")]
        Labels(super::super::super::types::LabelsFilter),
        #[prost(message, tag = "7")]
        Property(super::super::super::types::Property),
        #[prost(message, tag = "8")]
        Properties(super::super::super::types::PropertiesFilter),
        #[prost(string, tag = "9")]
        AuthorRid(::prost::alloc::string::String),
        #[prost(string, tag = "10")]
        AssigneeRid(::prost::alloc::string::String),
        #[prost(bool, tag = "11")]
        IsPublished(bool),
        #[prost(string, tag = "12")]
        WorkspaceRid(::prost::alloc::string::String),
        #[prost(bool, tag = "13")]
        AuthoredByCaller(bool),
        #[prost(message, tag = "14")]
        Authors(super::super::super::types::UserRidsFilter),
        #[prost(bool, tag = "15")]
        IsArchived(bool),
    }
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ChecklistSortOptions {
    #[prost(bool, tag = "1")]
    pub is_descending: bool,
    #[prost(enumeration = "ChecklistSortField", tag = "2")]
    pub field: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ChecklistSortField {
    Unspecified = 0,
    CreatedAt = 1,
    LastUsed = 2,
    UpdatedAt = 3,
}
impl ChecklistSortField {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "CHECKLIST_SORT_FIELD_UNSPECIFIED",
            Self::CreatedAt => "CHECKLIST_SORT_FIELD_CREATED_AT",
            Self::LastUsed => "CHECKLIST_SORT_FIELD_LAST_USED",
            Self::UpdatedAt => "CHECKLIST_SORT_FIELD_UPDATED_AT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CHECKLIST_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
            "CHECKLIST_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
            "CHECKLIST_SORT_FIELD_LAST_USED" => Some(Self::LastUsed),
            "CHECKLIST_SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
            _ => None,
        }
    }
}