pub struct FindRules<'a>(/* private fields */);Expand description
GET /api/detection_engine/rules/_find
Implementations§
Source§impl<'a> FindRules<'a>
impl<'a> FindRules<'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 FindRules<'_>
impl FindRules<'_>
Source§impl<'a> FindRules<'a>
impl<'a> FindRules<'a>
Sourcepub fn pages(self) -> BoxStream<'a, Result<RulePage>>
pub fn pages(self) -> BoxStream<'a, Result<RulePage>>
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<<RulePage as Page>::Item>>
pub fn items(self) -> BoxStream<'a, Result<<RulePage as Page>::Item>>
Streams every item across all pages. See pages.
Sourcepub fn bounded_pages(self, max_pages: u32) -> BoxStream<'a, Result<RulePage>>
pub fn bounded_pages(self, max_pages: u32) -> BoxStream<'a, Result<RulePage>>
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<<RulePage as Page>::Item>>
pub fn bounded_items( self, max_pages: u32, ) -> BoxStream<'a, Result<<RulePage as Page>::Item>>
Like items, reading at most max_pages pages.
If more remain, the stream ends with Error::PageLimit.