pub struct DiscoveryFilters {
pub resource_type: Option<String>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Filters for discovery requests
Fields§
§resource_type: Option<String>Filter by resource type
limit: Option<u32>Maximum number of results
offset: Option<u32>Number of results to skip
Implementations§
Source§impl DiscoveryFilters
impl DiscoveryFilters
Sourcepub fn with_resource_type(self, resource_type: impl Into<String>) -> Self
pub fn with_resource_type(self, resource_type: impl Into<String>) -> Self
Set resource type filter
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Set limit
Sourcepub fn with_offset(self, offset: u32) -> Self
pub fn with_offset(self, offset: u32) -> Self
Set offset
Trait Implementations§
Source§impl Clone for DiscoveryFilters
impl Clone for DiscoveryFilters
Source§fn clone(&self) -> DiscoveryFilters
fn clone(&self) -> DiscoveryFilters
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 DiscoveryFilters
impl Debug for DiscoveryFilters
Auto Trait Implementations§
impl Freeze for DiscoveryFilters
impl RefUnwindSafe for DiscoveryFilters
impl Send for DiscoveryFilters
impl Sync for DiscoveryFilters
impl Unpin for DiscoveryFilters
impl UnwindSafe for DiscoveryFilters
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