pub struct HttpHeader {
    pub name: Option<String>,
    pub value: Option<String>,
}Expand description
HTTPHeader describes a custom header to be used in HTTP probes
Fields§
§name: Option<String>The header field name
value: Option<String>The header field value
Implementations§
Source§impl HttpHeader
 
impl HttpHeader
pub fn new() -> HttpHeader
Trait Implementations§
Source§impl Clone for HttpHeader
 
impl Clone for HttpHeader
Source§fn clone(&self) -> HttpHeader
 
fn clone(&self) -> HttpHeader
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 HttpHeader
 
impl Debug for HttpHeader
Source§impl<'de> Deserialize<'de> for HttpHeader
 
impl<'de> Deserialize<'de> for HttpHeader
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
Source§impl FromStr for HttpHeader
Converts Query Parameters representation (style=form, explode=false) to a HttpHeader value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
 
impl FromStr for HttpHeader
Converts Query Parameters representation (style=form, explode=false) to a HttpHeader value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for HttpHeader
 
impl PartialEq for HttpHeader
Source§impl Serialize for HttpHeader
 
impl Serialize for HttpHeader
Source§impl ToString for HttpHeader
Converts the HttpHeader value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
 
impl ToString for HttpHeader
Converts the HttpHeader value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for HttpHeader
 
impl Validate for HttpHeader
Source§impl<'v_a> ValidateArgs<'v_a> for HttpHeader
 
impl<'v_a> ValidateArgs<'v_a> for HttpHeader
impl StructuralPartialEq for HttpHeader
Auto Trait Implementations§
impl Freeze for HttpHeader
impl RefUnwindSafe for HttpHeader
impl Send for HttpHeader
impl Sync for HttpHeader
impl Unpin for HttpHeader
impl UnwindSafe for HttpHeader
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