pub struct ResponseHeaders(pub String);
Expand description
Response Settings.
Tuple Fields§
§0: String
Trait Implementations§
Source§impl<Q: Display, W: Display> AddAssign<(Q, W)> for ResponseHeaders
impl<Q: Display, W: Display> AddAssign<(Q, W)> for ResponseHeaders
Source§fn add_assign(&mut self, (name, value): (Q, W))
fn add_assign(&mut self, (name, value): (Q, W))
Adding ResponseHeaders.
§Examples
let mut headers = ResponseHeaders::default();
headers += ("testName", "testValue");
Source§impl Clone for ResponseHeaders
impl Clone for ResponseHeaders
Source§fn clone(&self) -> ResponseHeaders
fn clone(&self) -> ResponseHeaders
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 ResponseHeaders
impl Debug for ResponseHeaders
Source§impl Default for ResponseHeaders
impl Default for ResponseHeaders
Source§fn default() -> ResponseHeaders
fn default() -> ResponseHeaders
Returns the “default value” for a type. Read more
Source§impl Hash for ResponseHeaders
impl Hash for ResponseHeaders
Source§impl Ord for ResponseHeaders
impl Ord for ResponseHeaders
Source§fn cmp(&self, other: &ResponseHeaders) -> Ordering
fn cmp(&self, other: &ResponseHeaders) -> Ordering
1.21.0 · 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 PartialEq for ResponseHeaders
impl PartialEq for ResponseHeaders
Source§impl PartialOrd for ResponseHeaders
impl PartialOrd for ResponseHeaders
impl Eq for ResponseHeaders
impl StructuralPartialEq for ResponseHeaders
Auto Trait Implementations§
impl Freeze for ResponseHeaders
impl RefUnwindSafe for ResponseHeaders
impl Send for ResponseHeaders
impl Sync for ResponseHeaders
impl Unpin for ResponseHeaders
impl UnwindSafe for ResponseHeaders
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