pub struct ServiceEndpointOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for ServiceEndpointOpts
.
Implementations§
Source§impl<'a> ServiceEndpointOptsBuilder<'a>
impl<'a> ServiceEndpointOptsBuilder<'a>
Sourcepub fn port<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn port<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
The exposed port number for the endpoint
Sourcepub fn scheme<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn scheme<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Return a URL with the given scheme, eg. http for http://
Sourcepub fn build(
&self,
) -> Result<ServiceEndpointOpts<'a>, ServiceEndpointOptsBuilderError>
pub fn build( &self, ) -> Result<ServiceEndpointOpts<'a>, ServiceEndpointOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for ServiceEndpointOptsBuilder<'a>
impl<'a> Clone for ServiceEndpointOptsBuilder<'a>
Source§fn clone(&self) -> ServiceEndpointOptsBuilder<'a>
fn clone(&self) -> ServiceEndpointOptsBuilder<'a>
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<'a> Freeze for ServiceEndpointOptsBuilder<'a>
impl<'a> RefUnwindSafe for ServiceEndpointOptsBuilder<'a>
impl<'a> Send for ServiceEndpointOptsBuilder<'a>
impl<'a> Sync for ServiceEndpointOptsBuilder<'a>
impl<'a> Unpin for ServiceEndpointOptsBuilder<'a>
impl<'a> UnwindSafe for ServiceEndpointOptsBuilder<'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
Mutably borrows from an owned value. Read more