pub enum StringMapOrExpression {
Map(HashMap<String, String>),
Expression(String),
}Expand description
Represents headers that can be either a map or a runtime expression
Variants§
Trait Implementations§
Source§impl Clone for StringMapOrExpression
impl Clone for StringMapOrExpression
Source§fn clone(&self) -> StringMapOrExpression
fn clone(&self) -> StringMapOrExpression
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 StringMapOrExpression
impl Debug for StringMapOrExpression
Source§impl Default for StringMapOrExpression
impl Default for StringMapOrExpression
Source§impl<'de> Deserialize<'de> for StringMapOrExpression
impl<'de> Deserialize<'de> for StringMapOrExpression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StringMapOrExpression
impl PartialEq for StringMapOrExpression
Source§fn eq(&self, other: &StringMapOrExpression) -> bool
fn eq(&self, other: &StringMapOrExpression) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StringMapOrExpression
impl Serialize for StringMapOrExpression
impl Eq for StringMapOrExpression
impl StructuralPartialEq for StringMapOrExpression
Auto Trait Implementations§
impl Freeze for StringMapOrExpression
impl RefUnwindSafe for StringMapOrExpression
impl Send for StringMapOrExpression
impl Sync for StringMapOrExpression
impl Unpin for StringMapOrExpression
impl UnsafeUnpin for StringMapOrExpression
impl UnwindSafe for StringMapOrExpression
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