pub struct PrefixRequest {Show 14 fields
pub prefix: String,
pub vrf: Option<Option<Box<IpAddressRequestVrf>>>,
pub scope_type: Option<Option<String>>,
pub scope_id: Option<Option<i32>>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub vlan: Option<Option<Box<InterfaceRequestUntaggedVlan>>>,
pub status: Option<Status>,
pub role: Option<Option<Box<IpRangeRequestRole>>>,
pub is_pool: Option<bool>,
pub mark_utilized: Option<bool>,
pub description: Option<String>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PrefixRequest : Adds support for custom fields and tags.
Fields§
§prefix: String§vrf: Option<Option<Box<IpAddressRequestVrf>>>§scope_type: Option<Option<String>>§scope_id: Option<Option<i32>>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§vlan: Option<Option<Box<InterfaceRequestUntaggedVlan>>>§status: Option<Status>container- Container *active- Active *reserved- Reserved *deprecated- Deprecated
role: Option<Option<Box<IpRangeRequestRole>>>§is_pool: Option<bool>All IP addresses within this prefix are considered usable
mark_utilized: Option<bool>Treat as fully utilized
description: Option<String>§comments: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PrefixRequest
impl PrefixRequest
Sourcepub fn new(prefix: String) -> PrefixRequest
pub fn new(prefix: String) -> PrefixRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PrefixRequest
impl Clone for PrefixRequest
Source§fn clone(&self) -> PrefixRequest
fn clone(&self) -> PrefixRequest
Returns a duplicate 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 PrefixRequest
impl Debug for PrefixRequest
Source§impl Default for PrefixRequest
impl Default for PrefixRequest
Source§fn default() -> PrefixRequest
fn default() -> PrefixRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrefixRequest
impl<'de> Deserialize<'de> for PrefixRequest
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 PrefixRequest
impl PartialEq for PrefixRequest
Source§impl Serialize for PrefixRequest
impl Serialize for PrefixRequest
impl StructuralPartialEq for PrefixRequest
Auto Trait Implementations§
impl Freeze for PrefixRequest
impl RefUnwindSafe for PrefixRequest
impl Send for PrefixRequest
impl Sync for PrefixRequest
impl Unpin for PrefixRequest
impl UnwindSafe for PrefixRequest
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