#[non_exhaustive]pub struct AggregateDataObjectsRequest {
pub parent: String,
pub filter: Option<Struct>,
pub aggregate: AggregationMethod,
/* private fields */
}Expand description
Request message for DataObjectSearchService.AggregateDataObjects.
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.parent: StringRequired. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
filter: Option<Struct>Optional. A JSON filter expression, e.g. {“genre”: {“$eq”: “sci-fi”}}, represented as a google.protobuf.Struct.
aggregate: AggregationMethodRequired. The aggregation method to apply to the query.
Implementations§
Source§impl AggregateDataObjectsRequest
impl AggregateDataObjectsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_filter<T>(self, v: T) -> Self
pub fn set_filter<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_filter<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_filter<T>(self, v: Option<T>) -> Self
Sourcepub fn set_aggregate<T: Into<AggregationMethod>>(self, v: T) -> Self
pub fn set_aggregate<T: Into<AggregationMethod>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AggregateDataObjectsRequest
impl Clone for AggregateDataObjectsRequest
Source§fn clone(&self) -> AggregateDataObjectsRequest
fn clone(&self) -> AggregateDataObjectsRequest
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 AggregateDataObjectsRequest
impl Debug for AggregateDataObjectsRequest
Source§impl Default for AggregateDataObjectsRequest
impl Default for AggregateDataObjectsRequest
Source§fn default() -> AggregateDataObjectsRequest
fn default() -> AggregateDataObjectsRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for AggregateDataObjectsRequest
Auto Trait Implementations§
impl Freeze for AggregateDataObjectsRequest
impl RefUnwindSafe for AggregateDataObjectsRequest
impl Send for AggregateDataObjectsRequest
impl Sync for AggregateDataObjectsRequest
impl Unpin for AggregateDataObjectsRequest
impl UnsafeUnpin for AggregateDataObjectsRequest
impl UnwindSafe for AggregateDataObjectsRequest
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