pub struct EndpointBuilder<'a> { /* private fields */ }Expand description
Builder for Endpoint.
Implementations§
Source§impl<'a> EndpointBuilder<'a>
impl<'a> EndpointBuilder<'a>
Sourcepub fn description<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The endpoint description. It is returned only when set on the resource.
Sourcepub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Defines whether the endpoint appears in the service catalog: - false.
The endpoint does not appear in the service catalog. - true. The
endpoint appears in the service catalog. Default is true.
Sourcepub fn interface(&mut self, value: Interface) -> &mut Self
pub fn interface(&mut self, value: Interface) -> &mut Self
The interface type, which describes the visibility of the endpoint.
Value is: - public. Visible by end users on a publicly available
network interface. - internal. Visible by end users on an unmetered
internal network interface. - admin. Visible by administrative users
on a secure network interface.
Sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
(Deprecated) The endpoint name. The field will only be returned in responses when set on the resource.
This field is deprecated as it provides no value. Endpoints are better described by the combination of service, region and interface they describe or by their ID.
Sourcepub fn region<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn region<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
(Deprecated in v3.2) The geographic location of the service endpoint.
Sourcepub fn region_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn region_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
(Since v3.2) The ID of the region that contains the service endpoint.
Sourcepub fn service_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn service_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the service to which the endpoint belongs.
Trait Implementations§
Source§impl<'a> Clone for EndpointBuilder<'a>
impl<'a> Clone for EndpointBuilder<'a>
Source§fn clone(&self) -> EndpointBuilder<'a>
fn clone(&self) -> EndpointBuilder<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for EndpointBuilder<'a>
impl<'a> RefUnwindSafe for EndpointBuilder<'a>
impl<'a> Send for EndpointBuilder<'a>
impl<'a> Sync for EndpointBuilder<'a>
impl<'a> Unpin for EndpointBuilder<'a>
impl<'a> UnsafeUnpin for EndpointBuilder<'a>
impl<'a> UnwindSafe for EndpointBuilder<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more