pub struct HttpMessageComponent {
pub id: HttpMessageComponentId,
pub value: HttpMessageComponentValue,
}Expand description
Http message component
Fields§
§id: HttpMessageComponentIdHttp message component id
value: HttpMessageComponentValueHttp message component value
Trait Implementations§
Source§impl Clone for HttpMessageComponent
impl Clone for HttpMessageComponent
Source§fn clone(&self) -> HttpMessageComponent
fn clone(&self) -> HttpMessageComponent
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 HttpMessageComponent
impl Debug for HttpMessageComponent
Source§impl Display for HttpMessageComponent
impl Display for HttpMessageComponent
Source§impl TryFrom<&str> for HttpMessageComponent
impl TryFrom<&str> for HttpMessageComponent
Source§fn try_from(
val: &str,
) -> Result<HttpMessageComponent, <HttpMessageComponent as TryFrom<&str>>::Error>
fn try_from( val: &str, ) -> Result<HttpMessageComponent, <HttpMessageComponent as TryFrom<&str>>::Error>
Create HttpMessageComponent from serialized string, i.e., "<id>": <value> of lines in the signature base of HTTP header.
We suppose that the value was correctly serialized as a line of signature base.
Source§type Error = HttpSigError
type Error = HttpSigError
The type returned in the event of a conversion error.
Source§impl TryFrom<(&HttpMessageComponentId, &[String])> for HttpMessageComponent
impl TryFrom<(&HttpMessageComponentId, &[String])> for HttpMessageComponent
Source§fn try_from(
_: (&HttpMessageComponentId, &[String]),
) -> Result<HttpMessageComponent, <HttpMessageComponent as TryFrom<(&HttpMessageComponentId, &[String])>>::Error>
fn try_from( _: (&HttpMessageComponentId, &[String]), ) -> Result<HttpMessageComponent, <HttpMessageComponent as TryFrom<(&HttpMessageComponentId, &[String])>>::Error>
Build http message component from given id and its associated field values
Source§type Error = HttpSigError
type Error = HttpSigError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for HttpMessageComponent
impl RefUnwindSafe for HttpMessageComponent
impl Send for HttpMessageComponent
impl Sync for HttpMessageComponent
impl Unpin for HttpMessageComponent
impl UnwindSafe for HttpMessageComponent
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