#[non_exhaustive]pub struct GrpcGatewayRouteRewriteBuilder { /* private fields */ }Expand description
A builder for GrpcGatewayRouteRewrite.
Implementations§
source§impl GrpcGatewayRouteRewriteBuilder
impl GrpcGatewayRouteRewriteBuilder
sourcepub fn hostname(self, input: GatewayRouteHostnameRewrite) -> Self
pub fn hostname(self, input: GatewayRouteHostnameRewrite) -> Self
The host name of the gateway route to rewrite.
sourcepub fn set_hostname(self, input: Option<GatewayRouteHostnameRewrite>) -> Self
pub fn set_hostname(self, input: Option<GatewayRouteHostnameRewrite>) -> Self
The host name of the gateway route to rewrite.
sourcepub fn get_hostname(&self) -> &Option<GatewayRouteHostnameRewrite>
pub fn get_hostname(&self) -> &Option<GatewayRouteHostnameRewrite>
The host name of the gateway route to rewrite.
sourcepub fn build(self) -> GrpcGatewayRouteRewrite
pub fn build(self) -> GrpcGatewayRouteRewrite
Consumes the builder and constructs a GrpcGatewayRouteRewrite.
Trait Implementations§
source§impl Clone for GrpcGatewayRouteRewriteBuilder
impl Clone for GrpcGatewayRouteRewriteBuilder
source§fn clone(&self) -> GrpcGatewayRouteRewriteBuilder
fn clone(&self) -> GrpcGatewayRouteRewriteBuilder
Returns a copy 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 Default for GrpcGatewayRouteRewriteBuilder
impl Default for GrpcGatewayRouteRewriteBuilder
source§fn default() -> GrpcGatewayRouteRewriteBuilder
fn default() -> GrpcGatewayRouteRewriteBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GrpcGatewayRouteRewriteBuilder
impl PartialEq for GrpcGatewayRouteRewriteBuilder
source§fn eq(&self, other: &GrpcGatewayRouteRewriteBuilder) -> bool
fn eq(&self, other: &GrpcGatewayRouteRewriteBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GrpcGatewayRouteRewriteBuilder
Auto Trait Implementations§
impl Freeze for GrpcGatewayRouteRewriteBuilder
impl RefUnwindSafe for GrpcGatewayRouteRewriteBuilder
impl Send for GrpcGatewayRouteRewriteBuilder
impl Sync for GrpcGatewayRouteRewriteBuilder
impl Unpin for GrpcGatewayRouteRewriteBuilder
impl UnwindSafe for GrpcGatewayRouteRewriteBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.