pub struct HttpRouteRequestMirrorPolicy {
pub destination: Option<HttpRouteDestination>,
pub mirror_percent: Option<f32>,
}Expand description
Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow. Mirroring is currently not supported for Cloud Run destinations.
This type is not used in any activity, and only used as part of another schema.
Fields§
§destination: Option<HttpRouteDestination>The destination the requests will be mirrored to. The weight of the destination will be ignored.
mirror_percent: Option<f32>Optional. The percentage of requests to get mirrored to the desired destination.
Trait Implementations§
Source§impl Clone for HttpRouteRequestMirrorPolicy
impl Clone for HttpRouteRequestMirrorPolicy
Source§fn clone(&self) -> HttpRouteRequestMirrorPolicy
fn clone(&self) -> HttpRouteRequestMirrorPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpRouteRequestMirrorPolicy
impl Debug for HttpRouteRequestMirrorPolicy
Source§impl Default for HttpRouteRequestMirrorPolicy
impl Default for HttpRouteRequestMirrorPolicy
Source§fn default() -> HttpRouteRequestMirrorPolicy
fn default() -> HttpRouteRequestMirrorPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpRouteRequestMirrorPolicy
impl<'de> Deserialize<'de> for HttpRouteRequestMirrorPolicy
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
impl Part for HttpRouteRequestMirrorPolicy
Auto Trait Implementations§
impl Freeze for HttpRouteRequestMirrorPolicy
impl RefUnwindSafe for HttpRouteRequestMirrorPolicy
impl Send for HttpRouteRequestMirrorPolicy
impl Sync for HttpRouteRequestMirrorPolicy
impl Unpin for HttpRouteRequestMirrorPolicy
impl UnwindSafe for HttpRouteRequestMirrorPolicy
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