pub struct ServiceEndpointSpecBuilder<___State = __ServiceEndpointSpecBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__Mode, __Ports> ServiceEndpointSpecBuilder<(__Mode, __Ports)>
impl<__Mode, __Ports> ServiceEndpointSpecBuilder<(__Mode, __Ports)>
sourcepub fn build_struct(self) -> ServiceEndpointSpec
pub fn build_struct(self) -> ServiceEndpointSpec
Finishes building and returns the requested object.
sourcepub fn maybe_mode(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Modewhere
__Mode: IsUnset,
pub fn maybe_mode(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Modewhere
__Mode: IsUnset,
Same as [Self::r#mode
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn mode(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Modewhere
__Mode: IsUnset,
pub fn mode(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Modewhere
__Mode: IsUnset,
The mode of resolution to use for internal load balancing between tasks
sourcepub fn maybe_ports(
self,
value: Option<impl Into<Box<Option<Vec<ServiceEndpointSpecPort>>>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Portswhere
__Ports: IsUnset,
pub fn maybe_ports(
self,
value: Option<impl Into<Box<Option<Vec<ServiceEndpointSpecPort>>>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Portswhere
__Ports: IsUnset,
Same as [Self::r#ports
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn ports(
self,
value: impl Into<Box<Option<Vec<ServiceEndpointSpecPort>>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Portswhere
__Ports: IsUnset,
pub fn ports(
self,
value: impl Into<Box<Option<Vec<ServiceEndpointSpecPort>>>>,
) -> <Self as __ServiceEndpointSpecBuilderSetMember>::Portswhere
__Ports: IsUnset,
List of exposed ports that this service is accessible on from the outside. Ports can only be provided if ‘vip’ resolution mode is used
Auto Trait Implementations§
impl<___State> Freeze for ServiceEndpointSpecBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceEndpointSpecBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceEndpointSpecBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceEndpointSpecBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceEndpointSpecBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceEndpointSpecBuilder<___State>where
___State: UnwindSafe,
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