pub struct SegmentBuilder<'a> { /* private fields */ }Expand description
Builder for Segment.
Implementations§
Source§impl<'a> SegmentBuilder<'a>
impl<'a> SegmentBuilder<'a>
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
A human-readable description for the resource. Default is an empty string.
Sourcepub fn name<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn name<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
Human-readable name of the segment.
Sourcepub fn network_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn network_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the attached network.
Sourcepub fn network_type<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn network_type<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The type of physical network that maps to this network resource. For
example, flat, vlan, vxlan, or gre.
Sourcepub fn physical_network<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn physical_network<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The physical network where this network/segment is implemented.
Sourcepub fn segmentation_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn segmentation_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the isolated segment on the physical network. The
network_type attribute defines the segmentation model. For example,
if the network_type value is vlan, this ID is a vlan identifier. If
the network_type value is gre, this ID is a gre key. Note that only
the segmentation-id of VLAN type networks can be changed!
pub fn tenant_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
Source§impl<'a> Clone for SegmentBuilder<'a>
impl<'a> Clone for SegmentBuilder<'a>
Source§fn clone(&self) -> SegmentBuilder<'a>
fn clone(&self) -> SegmentBuilder<'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> Freeze for SegmentBuilder<'a>
impl<'a> RefUnwindSafe for SegmentBuilder<'a>
impl<'a> Send for SegmentBuilder<'a>
impl<'a> Sync for SegmentBuilder<'a>
impl<'a> Unpin for SegmentBuilder<'a>
impl<'a> UnwindSafe for SegmentBuilder<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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