pub struct ConsulGatewayBuilder { /* private fields */ }
Expand description
Builder for ConsulGateway
.
Implementations§
Source§impl ConsulGatewayBuilder
impl ConsulGatewayBuilder
Sourcepub fn proxy(&mut self, value: Option<ConsulGatewayProxy>) -> &mut Self
pub fn proxy(&mut self, value: Option<ConsulGatewayProxy>) -> &mut Self
Proxy is used to configure the Envoy instance acting as the gateway.
Sourcepub fn ingress(&mut self, value: Option<ConsulIngressConfigEntry>) -> &mut Self
pub fn ingress(&mut self, value: Option<ConsulIngressConfigEntry>) -> &mut Self
Ingress represents the Consul Configuration Entry for an Ingress Gateway.
Sourcepub fn terminating(
&mut self,
value: Option<ConsulTerminatingConfigEntry>,
) -> &mut Self
pub fn terminating( &mut self, value: Option<ConsulTerminatingConfigEntry>, ) -> &mut Self
Terminating represents the Consul Configuration Entry for a Terminating Gateway.
Sourcepub fn mesh(&mut self, value: Option<ConsulMeshConfigEntry>) -> &mut Self
pub fn mesh(&mut self, value: Option<ConsulMeshConfigEntry>) -> &mut Self
Mesh indicates the Consul service should be a Mesh Gateway.
Sourcepub fn build(&self) -> Result<ConsulGateway, ConsulGatewayBuilderError>
pub fn build(&self) -> Result<ConsulGateway, ConsulGatewayBuilderError>
Trait Implementations§
Source§impl Clone for ConsulGatewayBuilder
impl Clone for ConsulGatewayBuilder
Source§fn clone(&self) -> ConsulGatewayBuilder
fn clone(&self) -> ConsulGatewayBuilder
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 ConsulGatewayBuilder
impl RefUnwindSafe for ConsulGatewayBuilder
impl Send for ConsulGatewayBuilder
impl Sync for ConsulGatewayBuilder
impl Unpin for ConsulGatewayBuilder
impl UnwindSafe for ConsulGatewayBuilder
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