pub struct InReplyTo(/* private fields */);Expand description
Lightweight In-Reply-To header wrapper.
Implementations§
Source§impl InReplyTo
impl InReplyTo
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, HeaderParseError>
pub fn new(value: impl AsRef<str>) -> Result<Self, HeaderParseError>
Creates a typed header wrapper.
Sourcepub const fn value(&self) -> &HeaderValue
pub const fn value(&self) -> &HeaderValue
Returns the header value.
Sourcepub fn field(&self) -> HeaderField
pub fn field(&self) -> HeaderField
Converts this wrapper into a header field.
Trait Implementations§
Source§impl Ord for InReplyTo
impl Ord for InReplyTo
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for InReplyTo
impl PartialOrd for InReplyTo
impl Eq for InReplyTo
impl StructuralPartialEq for InReplyTo
Auto Trait Implementations§
impl Freeze for InReplyTo
impl RefUnwindSafe for InReplyTo
impl Send for InReplyTo
impl Sync for InReplyTo
impl Unpin for InReplyTo
impl UnsafeUnpin for InReplyTo
impl UnwindSafe for InReplyTo
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