pub struct ProbeDefinition {
pub url: String,
pub method: Method,
pub headers: HeaderMap,
pub body: Option<Bytes>,
}Expand description
A single HTTP request to execute against a target.
The authorization context is expressed entirely through the headers field — set an
Authorization header for bearer tokens, API keys, or Basic auth. No special-case auth
fields.
Fields§
§url: StringFully-qualified target URL including scheme, host, path, and any query parameters.
method: MethodHTTP method for the request.
headers: HeaderMapRequest headers, including any authorization context.
body: Option<Bytes>Request body. None for GET, HEAD, DELETE; Some for POST, PATCH, PUT.
Trait Implementations§
Source§impl Clone for ProbeDefinition
impl Clone for ProbeDefinition
Source§fn clone(&self) -> ProbeDefinition
fn clone(&self) -> ProbeDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeDefinition
impl Debug for ProbeDefinition
Source§impl<'de> Deserialize<'de> for ProbeDefinition
impl<'de> Deserialize<'de> for ProbeDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for ProbeDefinition
impl RefUnwindSafe for ProbeDefinition
impl Send for ProbeDefinition
impl Sync for ProbeDefinition
impl Unpin for ProbeDefinition
impl UnsafeUnpin for ProbeDefinition
impl UnwindSafe for ProbeDefinition
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