pub struct InjectSpec {
pub header: Option<String>,
pub body: Option<String>,
pub from_context: Option<String>,
pub constant: Option<Value>,
}Expand description
Inject a context value or constant into a header or a (dotted) body path.
Exactly one of header/body and one of from_context/const must be set;
validated when the transform is built (Task 4).
Fields§
§header: Option<String>§body: Option<String>§from_context: Option<String>§constant: Option<Value>Trait Implementations§
Source§impl Clone for InjectSpec
impl Clone for InjectSpec
Source§fn clone(&self) -> InjectSpec
fn clone(&self) -> InjectSpec
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 InjectSpec
impl Debug for InjectSpec
Source§impl<'de> Deserialize<'de> for InjectSpec
impl<'de> Deserialize<'de> for InjectSpec
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
Auto Trait Implementations§
impl Freeze for InjectSpec
impl RefUnwindSafe for InjectSpec
impl Send for InjectSpec
impl Sync for InjectSpec
impl Unpin for InjectSpec
impl UnsafeUnpin for InjectSpec
impl UnwindSafe for InjectSpec
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