pub struct FindAgents<'a>(/* private fields */);Expand description
GET /api/fleet/agents
Implementations§
Source§impl<'a> FindAgents<'a>
impl<'a> FindAgents<'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 FindAgents<'_>
impl FindAgents<'_>
pub fn show_inactive(self, show: bool) -> Self
Source§impl FindAgents<'_>
impl FindAgents<'_>
Source§impl FindAgents<'_>
impl FindAgents<'_>
pub fn sort_field(self, field: &str) -> Self
pub fn sort_order(self, order: SortOrder) -> Self
Source§impl<'a> FindAgents<'a>
impl<'a> FindAgents<'a>
Sourcepub fn pages(self) -> BoxStream<'a, Result<FleetPage<Agent>>>
pub fn pages(self) -> BoxStream<'a, Result<FleetPage<Agent>>>
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<<FleetPage<Agent> as Page>::Item>>
pub fn items(self) -> BoxStream<'a, Result<<FleetPage<Agent> as Page>::Item>>
Streams every item across all pages. See pages.
Sourcepub fn bounded_pages(
self,
max_pages: u32,
) -> BoxStream<'a, Result<FleetPage<Agent>>>
pub fn bounded_pages( self, max_pages: u32, ) -> BoxStream<'a, Result<FleetPage<Agent>>>
Like pages, reading at most max_pages pages.
If more remain, the stream ends with Error::PageLimit.
Trait Implementations§
Source§impl<'a> Clone for FindAgents<'a>
impl<'a> Clone for FindAgents<'a>
Auto Trait Implementations§
impl<'a> !Freeze for FindAgents<'a>
impl<'a> !RefUnwindSafe for FindAgents<'a>
impl<'a> !UnwindSafe for FindAgents<'a>
impl<'a> Send for FindAgents<'a>
impl<'a> Sync for FindAgents<'a>
impl<'a> Unpin for FindAgents<'a>
impl<'a> UnsafeUnpin for FindAgents<'a>
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