pub struct ResponseHeader<'a> { /* private fields */ }Expand description
Borrowed view into one retained response header.
Ordinary equality is intentionally unavailable because the value may be sensitive.
ⓘ
use cloud_sdk::transport::{HeaderSensitivity, ResponseHeaders};
let mut headers = ResponseHeaders::new();
headers.try_push("x-secret", b"secret", HeaderSensitivity::Sensitive).unwrap();
let header = headers.get("x-secret").unwrap();
let _ = header == header;Implementations§
Source§impl<'a> ResponseHeader<'a>
impl<'a> ResponseHeader<'a>
Sourcepub const fn sensitivity(self) -> HeaderSensitivity
pub const fn sensitivity(self) -> HeaderSensitivity
Returns the value sensitivity.
Trait Implementations§
Source§impl<'a> Clone for ResponseHeader<'a>
impl<'a> Clone for ResponseHeader<'a>
Source§fn clone(&self) -> ResponseHeader<'a>
fn clone(&self) -> ResponseHeader<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ResponseHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResponseHeader<'a>
impl<'a> RefUnwindSafe for ResponseHeader<'a>
impl<'a> Send for ResponseHeader<'a>
impl<'a> Sync for ResponseHeader<'a>
impl<'a> Unpin for ResponseHeader<'a>
impl<'a> UnsafeUnpin for ResponseHeader<'a>
impl<'a> UnwindSafe for ResponseHeader<'a>
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