pub struct Translation {
pub strip_headers: Option<Vec<String>>,
pub set_headers: Option<HashMap<String, String>>,
pub query_params: Option<HashMap<String, String>>,
}Expand description
Request transformations applied to every proxied request.
Fields§
§strip_headers: Option<Vec<String>>Headers to remove from the incoming request before forwarding.
set_headers: Option<HashMap<String, String>>Headers to set on the outgoing request. Values support the
{access_token} template variable.
query_params: Option<HashMap<String, String>>Query parameters to append to every outgoing request URL.
Trait Implementations§
Source§impl Debug for Translation
impl Debug for Translation
Source§impl<'de> Deserialize<'de> for Translation
impl<'de> Deserialize<'de> for Translation
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 Translation
impl PartialEq for Translation
impl Eq for Translation
impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl Freeze for Translation
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnsafeUnpin for Translation
impl UnwindSafe for Translation
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<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.