pub struct DownloadAgentPolicy<'a>(/* private fields */);Expand description
GET /api/fleet/agent_policies/{agentPolicyId}/download
Implementations§
Source§impl<'a> DownloadAgentPolicy<'a>
impl<'a> DownloadAgentPolicy<'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 DownloadAgentPolicy<'_>
impl DownloadAgentPolicy<'_>
Sourcepub fn standalone(self, enabled: bool) -> Self
pub fn standalone(self, enabled: bool) -> Self
Produces a configuration for a standalone, non-Fleet agent.
Sourcepub fn kubernetes(self, enabled: bool) -> Self
pub fn kubernetes(self, enabled: bool) -> Self
Produces a Kubernetes manifest.
Trait Implementations§
Source§impl<'a> Clone for DownloadAgentPolicy<'a>
impl<'a> Clone for DownloadAgentPolicy<'a>
Auto Trait Implementations§
impl<'a> !Freeze for DownloadAgentPolicy<'a>
impl<'a> !RefUnwindSafe for DownloadAgentPolicy<'a>
impl<'a> !UnwindSafe for DownloadAgentPolicy<'a>
impl<'a> Send for DownloadAgentPolicy<'a>
impl<'a> Sync for DownloadAgentPolicy<'a>
impl<'a> Unpin for DownloadAgentPolicy<'a>
impl<'a> UnsafeUnpin for DownloadAgentPolicy<'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