pub struct FlexConfigBuilder { /* private fields */ }Expand description
A builder for initilizing a FlexConfig.
Implementations§
Source§impl FlexConfigBuilder
impl FlexConfigBuilder
Sourcepub fn hostname<T: Into<String>>(self, hostname: T) -> Self
pub fn hostname<T: Into<String>>(self, hostname: T) -> Self
Sets the Flex hostname. By default set to “local-flex”.
Sourcepub fn version<T: Into<String>>(self, version: T) -> Self
pub fn version<T: Into<String>>(self, version: T) -> Self
Sets the Flex Docker version. By default set to “latest”.
Sourcepub fn image_name<T: Into<String>>(self, image_name: T) -> Self
pub fn image_name<T: Into<String>>(self, image_name: T) -> Self
Sets the Flex Docker image name.
By default set to FLEX_IMAGE_NAME.
Sourcepub fn config_mounts<T, S, D>(self, config_mounts: T) -> Self
pub fn config_mounts<T, S, D>(self, config_mounts: T) -> Self
Sets the map of Flex configuration mount points.
Sourcepub fn ports<T>(self, ports: T) -> Selfwhere
T: IntoIterator<Item = Port>,
pub fn ports<T>(self, ports: T) -> Selfwhere
T: IntoIterator<Item = Port>,
Sets the Flex listening ports.
pub fn with_api(self, api: ApiConfig) -> Self
Sourcepub fn build(self) -> FlexConfig
pub fn build(self) -> FlexConfig
Builds a new FlexConfig.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlexConfigBuilder
impl !RefUnwindSafe for FlexConfigBuilder
impl Send for FlexConfigBuilder
impl Sync for FlexConfigBuilder
impl Unpin for FlexConfigBuilder
impl !UnwindSafe for FlexConfigBuilder
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> 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>
Converts
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>
Converts
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