pub struct DynamicRouterConfig {
pub expression: RouterExpression,
pub uri_delimiter: String,
pub cache_size: i32,
pub ignore_invalid_endpoints: bool,
pub max_iterations: usize,
pub timeout: Option<Duration>,
}Fields§
§expression: RouterExpression§uri_delimiter: String§cache_size: i32§ignore_invalid_endpoints: bool§max_iterations: usize§timeout: Option<Duration>Implementations§
Source§impl DynamicRouterConfig
impl DynamicRouterConfig
pub fn new(expression: RouterExpression) -> Self
pub fn uri_delimiter(self, d: impl Into<String>) -> Self
pub fn cache_size(self, n: i32) -> Self
pub fn ignore_invalid_endpoints(self, ignore: bool) -> Self
pub fn max_iterations(self, n: usize) -> Self
pub fn timeout(self, d: Duration) -> Self
pub fn no_timeout(self) -> Self
Trait Implementations§
Source§impl Clone for DynamicRouterConfig
impl Clone for DynamicRouterConfig
Source§fn clone(&self) -> DynamicRouterConfig
fn clone(&self) -> DynamicRouterConfig
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 moreAuto Trait Implementations§
impl Freeze for DynamicRouterConfig
impl !RefUnwindSafe for DynamicRouterConfig
impl Send for DynamicRouterConfig
impl Sync for DynamicRouterConfig
impl Unpin for DynamicRouterConfig
impl UnsafeUnpin for DynamicRouterConfig
impl !UnwindSafe for DynamicRouterConfig
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