pub struct RateLimitHeaderName(/* private fields */);Implementations§
Source§impl RateLimitHeaderName
impl RateLimitHeaderName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for RateLimitHeaderName
impl AsRef<str> for RateLimitHeaderName
Source§impl Clone for RateLimitHeaderName
impl Clone for RateLimitHeaderName
Source§fn clone(&self) -> RateLimitHeaderName
fn clone(&self) -> RateLimitHeaderName
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 RateLimitHeaderName
impl Debug for RateLimitHeaderName
Source§impl Display for RateLimitHeaderName
impl Display for RateLimitHeaderName
Source§impl FromStr for RateLimitHeaderName
impl FromStr for RateLimitHeaderName
Source§impl Hash for RateLimitHeaderName
impl Hash for RateLimitHeaderName
Source§impl Ord for RateLimitHeaderName
impl Ord for RateLimitHeaderName
Source§fn cmp(&self, other: &RateLimitHeaderName) -> Ordering
fn cmp(&self, other: &RateLimitHeaderName) -> 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 RateLimitHeaderName
impl PartialEq for RateLimitHeaderName
Source§fn eq(&self, other: &RateLimitHeaderName) -> bool
fn eq(&self, other: &RateLimitHeaderName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RateLimitHeaderName
impl PartialOrd for RateLimitHeaderName
Source§impl TryFrom<&str> for RateLimitHeaderName
impl TryFrom<&str> for RateLimitHeaderName
impl Eq for RateLimitHeaderName
impl StructuralPartialEq for RateLimitHeaderName
Auto Trait Implementations§
impl Freeze for RateLimitHeaderName
impl RefUnwindSafe for RateLimitHeaderName
impl Send for RateLimitHeaderName
impl Sync for RateLimitHeaderName
impl Unpin for RateLimitHeaderName
impl UnsafeUnpin for RateLimitHeaderName
impl UnwindSafe for RateLimitHeaderName
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