pub struct CreateFloatingIpRequest {
pub description: Option<Option<String>>,
pub home_location: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub server: Option<Option<i64>>,
pub type: IpType,
}Expand description
CreateFloatingIpRequest : Request for POST https://api.hetzner.cloud/v1/floating_ips
Fields§
§description: Option<Option<String>>Description of the Resource.
home_location: Option<String>Home Location for the Floating IP. Either the ID or the name of the Location. Only optional if no Server is provided. Routing is optimized for this Locations.
labels: Option<HashMap<String, String>>User-defined labels (key/value pairs) for the Resource. For more information, see "Labels". | User-defined labels (key/value pairs) for the Resource. Note that the set of Labels provided in the request will overwrite the existing one. For more information, see "Labels".
name: Option<String>Name of the Resource. Must be unique per Project.
server: Option<Option<i64>>Server the Floating IP is assigned to. null if not assigned.
type: IpTypeImplementations§
Source§impl CreateFloatingIpRequest
impl CreateFloatingIpRequest
Sourcepub fn new(type: IpType) -> CreateFloatingIpRequest
pub fn new(type: IpType) -> CreateFloatingIpRequest
Request for POST https://api.hetzner.cloud/v1/floating_ips
Trait Implementations§
Source§impl Clone for CreateFloatingIpRequest
impl Clone for CreateFloatingIpRequest
Source§fn clone(&self) -> CreateFloatingIpRequest
fn clone(&self) -> CreateFloatingIpRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateFloatingIpRequest
impl Debug for CreateFloatingIpRequest
Source§impl Default for CreateFloatingIpRequest
impl Default for CreateFloatingIpRequest
Source§fn default() -> CreateFloatingIpRequest
fn default() -> CreateFloatingIpRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateFloatingIpRequest
impl<'de> Deserialize<'de> for CreateFloatingIpRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateFloatingIpRequest
impl PartialEq for CreateFloatingIpRequest
Source§fn eq(&self, other: &CreateFloatingIpRequest) -> bool
fn eq(&self, other: &CreateFloatingIpRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateFloatingIpRequest
impl Serialize for CreateFloatingIpRequest
impl StructuralPartialEq for CreateFloatingIpRequest
Auto Trait Implementations§
impl Freeze for CreateFloatingIpRequest
impl RefUnwindSafe for CreateFloatingIpRequest
impl Send for CreateFloatingIpRequest
impl Sync for CreateFloatingIpRequest
impl Unpin for CreateFloatingIpRequest
impl UnsafeUnpin for CreateFloatingIpRequest
impl UnwindSafe for CreateFloatingIpRequest
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