pub struct DestinationBuilder { /* private fields */ }Expand description
Builder for Destination.
Implementations§
Source§impl DestinationBuilder
impl DestinationBuilder
pub fn name(&mut self, value: String) -> &mut Self
pub fn url(&mut self, value: String) -> &mut Self
pub fn health_check(&mut self, value: Option<HealthCheck>) -> &mut Self
pub fn default(&mut self, value: bool) -> &mut Self
pub fn match(&mut self, value: Option<Vec<DestinationMatch>>) -> &mut Self
pub fn routes(&mut self, value: Vec<Route>) -> &mut Self
pub fn middleware(&mut self, value: Vec<Middleware>) -> &mut Self
pub fn timeout(&mut self, value: Option<DestinationTimeouts>) -> &mut Self
pub fn retry(&mut self, value: Option<DestinationRetry>) -> &mut Self
Sourcepub fn build(&self) -> Result<Destination, DestinationBuilderError>
pub fn build(&self) -> Result<Destination, DestinationBuilderError>
Trait Implementations§
Source§impl Clone for DestinationBuilder
impl Clone for DestinationBuilder
Source§fn clone(&self) -> DestinationBuilder
fn clone(&self) -> DestinationBuilder
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 DestinationBuilder
impl RefUnwindSafe for DestinationBuilder
impl Send for DestinationBuilder
impl Sync for DestinationBuilder
impl Unpin for DestinationBuilder
impl UnwindSafe for DestinationBuilder
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