Struct openstack_sdk::api::network::v2::floatingip::set::FloatingipBuilder
source · pub struct FloatingipBuilder<'a> { /* private fields */ }Expand description
Builder for Floatingip.
Implementations§
source§impl<'a> FloatingipBuilder<'a>
impl<'a> FloatingipBuilder<'a>
sourcepub fn port_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn port_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
The ID of a port associated with the floating IP. To associate the
floating IP with a fixed IP, you must specify the ID of the internal
port. To disassociate the floating IP, null should be specified.
sourcepub fn fixed_ip_address<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn fixed_ip_address<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The fixed IP address that is associated with the floating IP. If an
internal port has multiple associated IP addresses, the service chooses
the first IP address unless you explicitly define a fixed IP address in
the fixed_ip_address parameter.
pub fn qos_policy_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
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 build(&self) -> Result<Floatingip<'a>, FloatingipBuilderError>
pub fn build(&self) -> Result<Floatingip<'a>, FloatingipBuilderError>
Trait Implementations§
source§impl<'a> Clone for FloatingipBuilder<'a>
impl<'a> Clone for FloatingipBuilder<'a>
source§fn clone(&self) -> FloatingipBuilder<'a>
fn clone(&self) -> FloatingipBuilder<'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> RefUnwindSafe for FloatingipBuilder<'a>
impl<'a> Send for FloatingipBuilder<'a>
impl<'a> Sync for FloatingipBuilder<'a>
impl<'a> Unpin for FloatingipBuilder<'a>
impl<'a> UnwindSafe for FloatingipBuilder<'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