pub struct ConsulExposePathBuilder { /* private fields */ }
Expand description
Builder for ConsulExposePath
.
Implementations§
Source§impl ConsulExposePathBuilder
impl ConsulExposePathBuilder
pub fn path(&mut self, value: String) -> &mut Self
pub fn protocol(&mut self, value: String) -> &mut Self
pub fn local_path_port(&mut self, value: Option<i64>) -> &mut Self
pub fn listener_port(&mut self, value: Option<String>) -> &mut Self
Sourcepub fn build(&self) -> Result<ConsulExposePath, ConsulExposePathBuilderError>
pub fn build(&self) -> Result<ConsulExposePath, ConsulExposePathBuilderError>
Trait Implementations§
Source§impl Clone for ConsulExposePathBuilder
impl Clone for ConsulExposePathBuilder
Source§fn clone(&self) -> ConsulExposePathBuilder
fn clone(&self) -> ConsulExposePathBuilder
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 Freeze for ConsulExposePathBuilder
impl RefUnwindSafe for ConsulExposePathBuilder
impl Send for ConsulExposePathBuilder
impl Sync for ConsulExposePathBuilder
impl Unpin for ConsulExposePathBuilder
impl UnwindSafe for ConsulExposePathBuilder
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