Spaces:
Build error
Build error
File size: 1,155 Bytes
84d2a97 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
use segment::types::Filter;
use super::StrictModeVerification;
use crate::operations::types::{RecommendGroupsRequestInternal, RecommendRequestInternal};
impl StrictModeVerification for RecommendRequestInternal {
fn query_limit(&self) -> Option<usize> {
Some(self.limit)
}
fn indexed_filter_read(&self) -> Option<&Filter> {
self.filter.as_ref()
}
fn indexed_filter_write(&self) -> Option<&Filter> {
None
}
fn request_exact(&self) -> Option<bool> {
None
}
fn request_search_params(&self) -> Option<&segment::types::SearchParams> {
self.params.as_ref()
}
}
impl StrictModeVerification for RecommendGroupsRequestInternal {
fn query_limit(&self) -> Option<usize> {
Some(self.group_request.limit as usize)
}
fn indexed_filter_read(&self) -> Option<&Filter> {
self.filter.as_ref()
}
fn indexed_filter_write(&self) -> Option<&Filter> {
None
}
fn request_exact(&self) -> Option<bool> {
None
}
fn request_search_params(&self) -> Option<&segment::types::SearchParams> {
self.params.as_ref()
}
}
|