pub struct FindCases<'a>(/* private fields */);Expand description
GET /api/cases/_find
Implementations§
Source§impl<'a> FindCases<'a>
impl<'a> FindCases<'a>
Sourcepub fn into_request(self) -> Request<'a>
pub fn into_request(self) -> Request<'a>
Converts this builder to a raw request, preserving its configured route, scope, parameters, body, headers and timeout. Replacing the raw body does not reapply this builder’s identity, concurrency or typed-field checks. Existing construction errors remain errors and cannot be repaired through the raw request.
Sourcepub fn header(self, name: HeaderName, value: HeaderValue) -> Self
pub fn header(self, name: HeaderName, value: HeaderValue) -> Self
Sets a header on this request only. It replaces every value of the same name from the transport defaults or the body.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Overrides the transport timeout for this request.
Source§impl FindCases<'_>
impl FindCases<'_>
pub fn per_page(self, per_page: u32) -> Self
Sourcepub fn owner(self, owner: &str) -> Self
pub fn owner(self, owner: &str) -> Self
Restricts results to an owner such as SECURITY_OWNER. Repeat for several owners.
pub fn search(self, text: &str) -> Self
pub fn status(self, status: CaseStatus) -> Self
pub fn severity(self, severity: Severity) -> Self
Sourcepub fn tag(self, tag: &str) -> Self
pub fn tag(self, tag: &str) -> Self
Restricts results to cases with this tag. Repeat for several tags.
Sourcepub fn sort_field(self, field: &str) -> Self
pub fn sort_field(self, field: &str) -> Self
A case field such as createdAt, updatedAt, title or severity.
pub fn sort_order(self, order: SortOrder) -> Self
Source§impl<'a> FindCases<'a>
impl<'a> FindCases<'a>
Sourcepub fn pages(self) -> BoxStream<'a, Result<CasePage>>
pub fn pages(self) -> BoxStream<'a, Result<CasePage>>
Streams every page from the first, one request per page. Any page set on this builder is ignored.
Sourcepub fn items(self) -> BoxStream<'a, Result<<CasePage as Page>::Item>>
pub fn items(self) -> BoxStream<'a, Result<<CasePage as Page>::Item>>
Streams every item across all pages. See pages.
Sourcepub fn bounded_pages(self, max_pages: u32) -> BoxStream<'a, Result<CasePage>>
pub fn bounded_pages(self, max_pages: u32) -> BoxStream<'a, Result<CasePage>>
Like pages, reading at most max_pages pages.
If more remain, the stream ends with Error::PageLimit.
Sourcepub fn bounded_items(
self,
max_pages: u32,
) -> BoxStream<'a, Result<<CasePage as Page>::Item>>
pub fn bounded_items( self, max_pages: u32, ) -> BoxStream<'a, Result<<CasePage as Page>::Item>>
Like items, reading at most max_pages pages.
If more remain, the stream ends with Error::PageLimit.