picker order by

This commit is contained in:
Priec
2026-07-16 14:38:12 +02:00
parent f2eb4d46bc
commit f13db931a4
6 changed files with 363 additions and 29 deletions

Binary file not shown.

View File

@@ -22,6 +22,15 @@ pub struct SearchRequest {
pub limit: ::core::option::Option<u32>,
#[prost(uint32, optional, tag = "6")]
pub offset: ::core::option::Option<u32>,
#[prost(message, optional, tag = "7")]
pub order: ::core::option::Option<SearchOrder>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SearchOrder {
#[prost(string, tag = "1")]
pub column: ::prost::alloc::string::String,
#[prost(enumeration = "SearchOrderDirection", tag = "2")]
pub direction: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchResponse {
@@ -46,6 +55,8 @@ pub mod search_response {
pub row_display_value: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub row_display_column: ::prost::alloc::string::String,
#[prost(uint64, optional, tag = "7")]
pub position: ::core::option::Option<u64>,
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
@@ -77,6 +88,35 @@ impl MatchMode {
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SearchOrderDirection {
Unspecified = 0,
Asc = 1,
Desc = 2,
}
impl SearchOrderDirection {
/// 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 => "SEARCH_ORDER_DIRECTION_UNSPECIFIED",
Self::Asc => "SEARCH_ORDER_DIRECTION_ASC",
Self::Desc => "SEARCH_ORDER_DIRECTION_DESC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SEARCH_ORDER_DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
"SEARCH_ORDER_DIRECTION_ASC" => Some(Self::Asc),
"SEARCH_ORDER_DIRECTION_DESC" => Some(Self::Desc),
_ => None,
}
}
}
/// Generated client implementations.
pub mod searcher_client {
#![allow(