pub struct BetaHeader(/* private fields */);Expand description
The betas one request carries, in the order the client sent them, each once.
Implementations§
Source§impl BetaHeader
impl BetaHeader
pub fn parse(value: &str) -> Self
pub fn admitted_by(self, policy: &BetaPolicy) -> Self
pub fn refused_by(self, policy: &BetaPolicy) -> Self
pub fn extend(&mut self, other: Self)
pub fn contains(&self, flag: &str) -> bool
pub fn opens(&self, gate: &BetaGatedField) -> bool
pub const fn is_empty(&self) -> bool
pub fn betas(&self) -> &[AnthropicBeta]
pub fn render(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for BetaHeader
impl Clone for BetaHeader
Source§impl Debug for BetaHeader
impl Debug for BetaHeader
Source§impl Default for BetaHeader
impl Default for BetaHeader
impl Eq for BetaHeader
Source§impl PartialEq for BetaHeader
impl PartialEq for BetaHeader
impl StructuralPartialEq for BetaHeader
Auto Trait Implementations§
impl Freeze for BetaHeader
impl RefUnwindSafe for BetaHeader
impl Send for BetaHeader
impl Sync for BetaHeader
impl Unpin for BetaHeader
impl UnsafeUnpin for BetaHeader
impl UnwindSafe for BetaHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.