pub struct WritablePrefixRequest {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
WritablePrefixRequest : 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>Operational status of this prefix * 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 WritablePrefixRequest
impl WritablePrefixRequest
Sourcepub fn new(prefix: String) -> WritablePrefixRequest
pub fn new(prefix: String) -> WritablePrefixRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for WritablePrefixRequest
impl Clone for WritablePrefixRequest
Source§fn clone(&self) -> WritablePrefixRequest
fn clone(&self) -> WritablePrefixRequest
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 WritablePrefixRequest
impl Debug for WritablePrefixRequest
Source§impl Default for WritablePrefixRequest
impl Default for WritablePrefixRequest
Source§fn default() -> WritablePrefixRequest
fn default() -> WritablePrefixRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritablePrefixRequest
impl<'de> Deserialize<'de> for WritablePrefixRequest
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 WritablePrefixRequest
impl PartialEq for WritablePrefixRequest
Source§impl Serialize for WritablePrefixRequest
impl Serialize for WritablePrefixRequest
impl StructuralPartialEq for WritablePrefixRequest
Auto Trait Implementations§
impl Freeze for WritablePrefixRequest
impl RefUnwindSafe for WritablePrefixRequest
impl Send for WritablePrefixRequest
impl Sync for WritablePrefixRequest
impl Unpin for WritablePrefixRequest
impl UnwindSafe for WritablePrefixRequest
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