Struct dagger_sdk::ServiceEndpointOptsBuilder
source · 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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)