mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
implement all the /indexes/documents route
This commit is contained in:
parent
13afdaf393
commit
78f6f22a80
5 changed files with 213 additions and 13 deletions
|
@ -6,6 +6,7 @@ use std::str::FromStr;
|
|||
use deserr::{DeserializeError, Deserr, MergeWithError, ValueKind};
|
||||
use serde::de::Visitor;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
use utoipa::{IntoParams, PartialSchema, ToSchema};
|
||||
|
||||
use crate::deserr::query_params::FromQueryParameter;
|
||||
|
||||
|
@ -229,7 +230,7 @@ pub enum OptionStarOrList<T> {
|
|||
List(Vec<T>),
|
||||
}
|
||||
|
||||
impl<T> OptionStarOrList<T> {
|
||||
impl<T: PartialSchema> OptionStarOrList<T> {
|
||||
pub fn is_some(&self) -> bool {
|
||||
match self {
|
||||
Self::None => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue