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 copy 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.
§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
§type Error = HttpSigError
type Error = HttpSigError
The type returned in the event of a conversion error.
Auto Trait Implementations§
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