#[non_exhaustive]pub struct BridgeNetworkSourceBuilder { /* private fields */ }
Expand description
A builder for BridgeNetworkSource
.
Implementations§
source§impl BridgeNetworkSourceBuilder
impl BridgeNetworkSourceBuilder
sourcepub fn multicast_ip(self, input: impl Into<String>) -> Self
pub fn multicast_ip(self, input: impl Into<String>) -> Self
The network source multicast IP. This field is required.
sourcepub fn set_multicast_ip(self, input: Option<String>) -> Self
pub fn set_multicast_ip(self, input: Option<String>) -> Self
The network source multicast IP.
sourcepub fn get_multicast_ip(&self) -> &Option<String>
pub fn get_multicast_ip(&self) -> &Option<String>
The network source multicast IP.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the network source. This field is required.
sourcepub fn network_name(self, input: impl Into<String>) -> Self
pub fn network_name(self, input: impl Into<String>) -> Self
The network source’s gateway network name. This field is required.
sourcepub fn set_network_name(self, input: Option<String>) -> Self
pub fn set_network_name(self, input: Option<String>) -> Self
The network source’s gateway network name.
sourcepub fn get_network_name(&self) -> &Option<String>
pub fn get_network_name(&self) -> &Option<String>
The network source’s gateway network name.
sourcepub fn protocol(self, input: Protocol) -> Self
pub fn protocol(self, input: Protocol) -> Self
The network source protocol. This field is required.
sourcepub fn set_protocol(self, input: Option<Protocol>) -> Self
pub fn set_protocol(self, input: Option<Protocol>) -> Self
The network source protocol.
sourcepub fn get_protocol(&self) -> &Option<Protocol>
pub fn get_protocol(&self) -> &Option<Protocol>
The network source protocol.
sourcepub fn build(self) -> BridgeNetworkSource
pub fn build(self) -> BridgeNetworkSource
Consumes the builder and constructs a BridgeNetworkSource
.
Trait Implementations§
source§impl Clone for BridgeNetworkSourceBuilder
impl Clone for BridgeNetworkSourceBuilder
source§fn clone(&self) -> BridgeNetworkSourceBuilder
fn clone(&self) -> BridgeNetworkSourceBuilder
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 moresource§impl Debug for BridgeNetworkSourceBuilder
impl Debug for BridgeNetworkSourceBuilder
source§impl Default for BridgeNetworkSourceBuilder
impl Default for BridgeNetworkSourceBuilder
source§fn default() -> BridgeNetworkSourceBuilder
fn default() -> BridgeNetworkSourceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for BridgeNetworkSourceBuilder
impl PartialEq for BridgeNetworkSourceBuilder
source§fn eq(&self, other: &BridgeNetworkSourceBuilder) -> bool
fn eq(&self, other: &BridgeNetworkSourceBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BridgeNetworkSourceBuilder
Auto Trait Implementations§
impl Freeze for BridgeNetworkSourceBuilder
impl RefUnwindSafe for BridgeNetworkSourceBuilder
impl Send for BridgeNetworkSourceBuilder
impl Sync for BridgeNetworkSourceBuilder
impl Unpin for BridgeNetworkSourceBuilder
impl UnwindSafe for BridgeNetworkSourceBuilder
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 moreCreates a shared type from an unshared type.