[][src]Struct openstack::network::NewRouter

pub struct NewRouter { /* fields omitted */ }

A request to create a router

Implementations

impl NewRouter[src]

pub fn create(self) -> Result<Router>[src]

Request creation of a router.

pub fn set_admin_state_up(&mut self, value: bool)[src]

Set administrative status for the router.

pub fn with_admin_state_up(self, value: bool) -> Self[src]

Set administrative status for the router.

pub fn set_availability_zone_hints(&mut self, value: Vec<String>)[src]

Set the availability zone candidates for the router.

pub fn with_availability_zone_hints(self, value: Vec<String>) -> Self[src]

Set the availability zone candidates for the router.

pub fn set_description<S: Into<String>>(&mut self, value: S)[src]

Set description of the router.

pub fn with_description<S: Into<String>>(self, value: S) -> Self[src]

Set description of the router.

pub fn set_distributed(&mut self, value: bool)[src]

Set whether the router is distributed.

pub fn with_distributed(self, value: bool) -> Self[src]

Set whether the router is distributed.

pub fn set_external_gateway(&mut self, value: ExternalGateway)[src]

Set the external gateway information.

pub fn with_external_gateway(self, value: ExternalGateway) -> Self[src]

Set the external gateway information.

pub fn set_flavor_id<S: Into<String>>(&mut self, value: S)[src]

Set the ID of the flavor associated with the router.

pub fn with_flavor_id<S: Into<String>>(self, value: S) -> Self[src]

Set the ID of the flavor associated with the router.

pub fn set_ha(&mut self, value: bool)[src]

Set whether the router is highly-available.

pub fn with_ha(self, value: bool) -> Self[src]

Set whether the router is highly-available.

pub fn set_name<S: Into<String>>(&mut self, value: S)[src]

Set a name for the router.

pub fn with_name<S: Into<String>>(self, value: S) -> Self[src]

Set a name for the router.

pub fn set_project_id<S: Into<String>>(&mut self, value: S)[src]

Set a project id for the router.

pub fn with_project_id<S: Into<String>>(self, value: S) -> Self[src]

Set a project id for the router.

pub fn set_service_type_id<S: Into<String>>(&mut self, value: S)[src]

Set the ID of the service type associated with the router.

pub fn with_service_type_id<S: Into<String>>(self, value: S) -> Self[src]

Set the ID of the service type associated with the router.

Trait Implementations

impl Clone for NewRouter[src]

impl Debug for NewRouter[src]

Auto Trait Implementations

impl !RefUnwindSafe for NewRouter

impl !Send for NewRouter

impl !Sync for NewRouter

impl Unpin for NewRouter

impl !UnwindSafe for NewRouter

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.