pub struct MirrorConfig {
pub upstream: String,
pub backends: Vec<String>,
pub percent: f64,
}Expand description
[route.middleware.mirror].
Fields§
§upstream: StringA declared [[upstream]] (its health-checked backends) …
backends: Vec<String>… or backend URLs.
percent: f64Share of requests copied, 0–100.
Trait Implementations§
Source§impl Clone for MirrorConfig
impl Clone for MirrorConfig
Source§impl Debug for MirrorConfig
impl Debug for MirrorConfig
Source§impl Default for MirrorConfig
impl Default for MirrorConfig
Source§impl PartialEq for MirrorConfig
impl PartialEq for MirrorConfig
impl StructuralPartialEq for MirrorConfig
Auto Trait Implementations§
impl Freeze for MirrorConfig
impl RefUnwindSafe for MirrorConfig
impl Send for MirrorConfig
impl Sync for MirrorConfig
impl Unpin for MirrorConfig
impl UnsafeUnpin for MirrorConfig
impl UnwindSafe for MirrorConfig
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