pub struct ListQuery {
pub count: Option<usize>,
pub start_index: Option<usize>,
pub filter: Option<String>,
pub attributes: Vec<String>,
pub excluded_attributes: Vec<String>,
}
Expand description
Query parameters for listing resources.
This structure supports pagination, filtering, and attribute selection for SCIM list operations.
Fields§
§count: Option<usize>
Maximum number of results to return
start_index: Option<usize>
Starting index for pagination
filter: Option<String>
Filter expression
attributes: Vec<String>
Attributes to include in results
excluded_attributes: Vec<String>
Attributes to exclude from results
Implementations§
Source§impl ListQuery
impl ListQuery
Sourcepub fn with_count(self, count: usize) -> Self
pub fn with_count(self, count: usize) -> Self
Set the maximum count.
Sourcepub fn with_start_index(self, start_index: usize) -> Self
pub fn with_start_index(self, start_index: usize) -> Self
Set the starting index.
Sourcepub fn with_filter(self, filter: String) -> Self
pub fn with_filter(self, filter: String) -> Self
Set a filter expression.
Sourcepub fn with_attribute(self, attribute: String) -> Self
pub fn with_attribute(self, attribute: String) -> Self
Add an attribute to include in results.
Sourcepub fn with_attributes(self, attributes: Vec<String>) -> Self
pub fn with_attributes(self, attributes: Vec<String>) -> Self
Add multiple attributes to include in results.
Sourcepub fn with_excluded_attribute(self, attribute: String) -> Self
pub fn with_excluded_attribute(self, attribute: String) -> Self
Add an attribute to exclude from results.
Sourcepub fn with_excluded_attributes(self, attributes: Vec<String>) -> Self
pub fn with_excluded_attributes(self, attributes: Vec<String>) -> Self
Add multiple attributes to exclude from results.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListQuery
impl RefUnwindSafe for ListQuery
impl Send for ListQuery
impl Sync for ListQuery
impl Unpin for ListQuery
impl UnwindSafe for ListQuery
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<T> TenantValidator for T
impl<T> TenantValidator for T
Source§fn validate_tenant_context(
&self,
expected_tenant_id: &str,
context: &RequestContext,
) -> Result<(), String>
fn validate_tenant_context( &self, expected_tenant_id: &str, context: &RequestContext, ) -> Result<(), String>
Validate that the context has the expected tenant.
Source§fn validate_single_tenant_context(
&self,
context: &RequestContext,
) -> Result<(), String>
fn validate_single_tenant_context( &self, context: &RequestContext, ) -> Result<(), String>
Validate that the context is for single-tenant operation.
Source§fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
Extract tenant context or return error for multi-tenant operations.