pub struct FilterAssetsRequest {
pub filter: Option<AssetFilter>,
pub advanced_filter: Option<AdvancedFilter>,
pub limit: Option<i32>,
pub cursor: Option<String>,
pub aggregated_properties: Option<Vec<AssetAggregatedProperty>>,
pub partition: Option<Partition>,
pub sort: Option<Vec<CoreSortItem>>,
}Expand description
Request for filtering assets.
Fields§
§filter: Option<AssetFilter>Simple filter.
advanced_filter: Option<AdvancedFilter>Advanced filter.
limit: Option<i32>Maximum number of results to return.
cursor: Option<String>Optional cursor for pagination.
aggregated_properties: Option<Vec<AssetAggregatedProperty>>Aggregated properties to include.
partition: Option<Partition>Optional partition.
sort: Option<Vec<CoreSortItem>>Optional list of fields to sort on. The order is significant.
Trait Implementations§
Source§impl Clone for FilterAssetsRequest
impl Clone for FilterAssetsRequest
Source§fn clone(&self) -> FilterAssetsRequest
fn clone(&self) -> FilterAssetsRequest
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 FilterAssetsRequest
impl Debug for FilterAssetsRequest
Source§impl Default for FilterAssetsRequest
impl Default for FilterAssetsRequest
Source§fn default() -> FilterAssetsRequest
fn default() -> FilterAssetsRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilterAssetsRequest
impl<'de> Deserialize<'de> for FilterAssetsRequest
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
Source§impl FilterWithRequest<FilterAssetsRequest, Asset> for AssetsResource
impl FilterWithRequest<FilterAssetsRequest, Asset> for AssetsResource
Source§fn filter(
&self,
filter: TFilter,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn filter( &self, filter: TFilter, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Filter resources. Read more
Source§fn filter_all(
&self,
filter: TFilter,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all( &self, filter: TFilter, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources, following cursors until they are exhausted. Read more
Source§fn filter_all_stream(
&self,
filter: TFilter,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn filter_all_stream( &self, filter: TFilter, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
Filter resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Source§fn filter_all_partitioned(
&self,
filter: TFilter,
num_partitions: u32,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all_partitioned( &self, filter: TFilter, num_partitions: u32, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources using partitioned reads, following cursors until all partitions are
exhausted. Read more
Source§impl Serialize for FilterAssetsRequest
impl Serialize for FilterAssetsRequest
Source§impl SetCursor for FilterAssetsRequest
impl SetCursor for FilterAssetsRequest
Source§fn set_cursor(&mut self, cursor: Option<String>)
fn set_cursor(&mut self, cursor: Option<String>)
Set cursor to the given value.
Source§impl WithPartition for FilterAssetsRequest
impl WithPartition for FilterAssetsRequest
Source§fn with_partition(&self, partition: Partition) -> Self
fn with_partition(&self, partition: Partition) -> Self
Create a clone of self with given partition.
Auto Trait Implementations§
impl Freeze for FilterAssetsRequest
impl RefUnwindSafe for FilterAssetsRequest
impl Send for FilterAssetsRequest
impl Sync for FilterAssetsRequest
impl Unpin for FilterAssetsRequest
impl UnwindSafe for FilterAssetsRequest
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