Struct dagger_sdk::ContainerEndpointOptsBuilder
source · pub struct ContainerEndpointOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerEndpointOpts.
Implementations§
source§impl<'a> ContainerEndpointOptsBuilder<'a>
impl<'a> ContainerEndpointOptsBuilder<'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<ContainerEndpointOpts<'a>, ContainerEndpointOptsBuilderError>
pub fn build( &self ) -> Result<ContainerEndpointOpts<'a>, ContainerEndpointOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for ContainerEndpointOptsBuilder<'a>
impl<'a> Clone for ContainerEndpointOptsBuilder<'a>
source§fn clone(&self) -> ContainerEndpointOptsBuilder<'a>
fn clone(&self) -> ContainerEndpointOptsBuilder<'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> RefUnwindSafe for ContainerEndpointOptsBuilder<'a>
impl<'a> Send for ContainerEndpointOptsBuilder<'a>
impl<'a> Sync for ContainerEndpointOptsBuilder<'a>
impl<'a> Unpin for ContainerEndpointOptsBuilder<'a>
impl<'a> UnwindSafe for ContainerEndpointOptsBuilder<'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