pub struct Group {
pub include: Option<Vec<Selector>>,
pub sort_by: Option<Vec<String>>,
pub split_by_sort_key: Option<bool>,
pub reverse_sort: Option<bool>,
pub maximum_size: Option<usize>,
pub submit_whole: Option<bool>,
}
Expand description
Group definition.
Fields§
§include: Option<Vec<Selector>>
Include members of the group where all JSON elements match the given values.
sort_by: Option<Vec<String>>
Sort by the given set of JSON elements.
split_by_sort_key: Option<bool>
Split into groups by the sort keys.
reverse_sort: Option<bool>
Reverse the sort.
maximum_size: Option<usize>
Maximum size of the submitted group.
submit_whole: Option<bool>
Submit only whole groups when true.
Implementations§
Source§impl Group
impl Group
Sourcepub fn split_by_sort_key(&self) -> bool
pub fn split_by_sort_key(&self) -> bool
Get the group’s split_by_sort_key
.
Sourcepub fn reverse_sort(&self) -> bool
pub fn reverse_sort(&self) -> bool
Get the group’s reverse_sort
.
Sourcepub fn submit_whole(&self) -> bool
pub fn submit_whole(&self) -> bool
Get the group’s submit_whole
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.