pub enum CommonApiHeader {
Authorization,
ContentType,
Accept,
CorrelationId,
IdempotencyKey,
RateLimitLimit,
RateLimitRemaining,
RateLimitReset,
}Expand description
Common API header labels.
Variants§
Authorization
A stable label variant.
ContentType
A stable label variant.
Accept
A stable label variant.
CorrelationId
A stable label variant.
IdempotencyKey
A stable label variant.
RateLimitLimit
A stable label variant.
RateLimitRemaining
A stable label variant.
RateLimitReset
A stable label variant.
Implementations§
Source§impl CommonApiHeader
impl CommonApiHeader
Sourcepub const fn header_name(self) -> &'static str
pub const fn header_name(self) -> &'static str
Returns the conventional HTTP header spelling.
Trait Implementations§
Source§impl Clone for CommonApiHeader
impl Clone for CommonApiHeader
Source§fn clone(&self) -> CommonApiHeader
fn clone(&self) -> CommonApiHeader
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 moreSource§impl Debug for CommonApiHeader
impl Debug for CommonApiHeader
Source§impl Default for CommonApiHeader
impl Default for CommonApiHeader
Source§impl Display for CommonApiHeader
impl Display for CommonApiHeader
Source§impl FromStr for CommonApiHeader
impl FromStr for CommonApiHeader
Source§impl Hash for CommonApiHeader
impl Hash for CommonApiHeader
Source§impl Ord for CommonApiHeader
impl Ord for CommonApiHeader
Source§fn cmp(&self, other: &CommonApiHeader) -> Ordering
fn cmp(&self, other: &CommonApiHeader) -> Ordering
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 PartialEq for CommonApiHeader
impl PartialEq for CommonApiHeader
Source§fn eq(&self, other: &CommonApiHeader) -> bool
fn eq(&self, other: &CommonApiHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CommonApiHeader
impl PartialOrd for CommonApiHeader
impl Copy for CommonApiHeader
impl Eq for CommonApiHeader
impl StructuralPartialEq for CommonApiHeader
Auto Trait Implementations§
impl Freeze for CommonApiHeader
impl RefUnwindSafe for CommonApiHeader
impl Send for CommonApiHeader
impl Sync for CommonApiHeader
impl Unpin for CommonApiHeader
impl UnsafeUnpin for CommonApiHeader
impl UnwindSafe for CommonApiHeader
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