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 more