#[non_exhaustive]pub struct GroupResult {
pub properties: HashMap<String, Value>,
pub count: i64,
/* private fields */
}Expand description
Result containing the properties and count of a groupBy request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.properties: HashMap<String, Value>Properties matching the groupBy fields in the request.
count: i64Total count of resources for the given properties.
Implementations§
Source§impl GroupResult
impl GroupResult
pub fn new() -> Self
Sourcepub fn set_properties<T, K, V>(self, v: T) -> Self
pub fn set_properties<T, K, V>(self, v: T) -> Self
Sets the value of properties.
§Example
ⓘ
use wkt::Value;
let x = GroupResult::new().set_properties([
("key0", Value::default()/* use setters */),
("key1", Value::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for GroupResult
impl Clone for GroupResult
Source§fn clone(&self) -> GroupResult
fn clone(&self) -> GroupResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroupResult
impl Debug for GroupResult
Source§impl Default for GroupResult
impl Default for GroupResult
Source§fn default() -> GroupResult
fn default() -> GroupResult
Returns the “default value” for a type. Read more
Source§impl Message for GroupResult
impl Message for GroupResult
Source§impl PartialEq for GroupResult
impl PartialEq for GroupResult
impl StructuralPartialEq for GroupResult
Auto Trait Implementations§
impl Freeze for GroupResult
impl RefUnwindSafe for GroupResult
impl Send for GroupResult
impl Sync for GroupResult
impl Unpin for GroupResult
impl UnwindSafe for GroupResult
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