Struct square_api_client::http::Headers
source · [−]Expand description
A collection of Request Headers
Fields
headers: HashMap<String, String>
The request headers as key-value pairs
Implementations
sourceimpl Headers
impl Headers
sourcepub fn has_user_agent(&self) -> bool
pub fn has_user_agent(&self) -> bool
Indicates whether the headers include the User Agent header
sourcepub fn set_user_agent(&mut self, user_agent: &str) -> Option<String>
pub fn set_user_agent(&mut self, user_agent: &str) -> Option<String>
Sets the User Agent header
Trait Implementations
impl Eq for Headers
impl StructuralEq for Headers
impl StructuralPartialEq for Headers
Auto Trait Implementations
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnwindSafe for Headers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.