pub struct From {
pub display_name: Option<String>,
pub uri: Uri,
pub params: Vec<Param>,
}
Expand description
The From
header in its typed form.
Fields§
§display_name: Option<String>
§uri: Uri
§params: Vec<Param>
Implementations§
Source§impl From
impl From
pub fn with_uri(self, uri: Uri) -> Self
pub fn mut_uri(&mut self, uri: Uri) -> &mut Self
pub fn with_uri_param(self, param: Param) -> Self
pub fn mut_uri_param(&mut self, param: Param) -> &mut Self
pub fn with_param(self, param: Param) -> Self
pub fn mut_param(&mut self, param: Param) -> &mut Self
pub fn with_params(self, params: Vec<Param>) -> Self
pub fn mut_params(&mut self, params: Vec<Param>) -> &mut Self
Trait Implementations§
Source§impl<'a> TryFrom<DisplayUriParamsTokenizer<'a>> for From
impl<'a> TryFrom<DisplayUriParamsTokenizer<'a>> for From
Source§impl<'a> TypedHeader<'a> for From
impl<'a> TypedHeader<'a> for From
type Tokenizer = DisplayUriParamsTokenizer<'a>
impl Eq for From
impl StructuralPartialEq for From
Auto Trait Implementations§
impl Freeze for From
impl RefUnwindSafe for From
impl Send for From
impl Sync for From
impl Unpin for From
impl UnwindSafe for From
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