pub struct PrefixLengthRequest {Show 14 fields
pub id: Option<Uuid>,
pub prefix_length: i32,
pub type: Option<PrefixTypeChoices>,
pub status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub role: Option<Option<Box<ApprovalWorkflowUser>>>,
pub location: Option<Option<Box<ApprovalWorkflowUser>>>,
pub tenant: Option<Option<Box<ApprovalWorkflowUser>>>,
pub vlan: Option<Option<Box<ApprovalWorkflowUser>>>,
pub rir: Option<Option<Box<BulkWritablePrefixRequestRir>>>,
pub date_allocated: Option<Option<String>>,
pub description: Option<String>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
}Expand description
PrefixLengthRequest : Input serializer for POST to /api/ipam/prefixes/{id}/available-prefixes/, i.e. allocating one or more sub-prefixes. Since setting of multiple locations on create is not supported, this uses the legacy single-location option.
Fields§
§id: Option<Uuid>§prefix_length: i32§type: Option<PrefixTypeChoices>§status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§role: Option<Option<Box<ApprovalWorkflowUser>>>§location: Option<Option<Box<ApprovalWorkflowUser>>>§tenant: Option<Option<Box<ApprovalWorkflowUser>>>§vlan: Option<Option<Box<ApprovalWorkflowUser>>>§rir: Option<Option<Box<BulkWritablePrefixRequestRir>>>§date_allocated: Option<Option<String>>Date this prefix was allocated to an RIR, reserved in IPAM, etc.
description: Option<String>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl PrefixLengthRequest
impl PrefixLengthRequest
Sourcepub fn new(
prefix_length: i32,
status: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> PrefixLengthRequest
pub fn new( prefix_length: i32, status: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> PrefixLengthRequest
Input serializer for POST to /api/ipam/prefixes/{id}/available-prefixes/, i.e. allocating one or more sub-prefixes. Since setting of multiple locations on create is not supported, this uses the legacy single-location option.
Trait Implementations§
Source§impl Clone for PrefixLengthRequest
impl Clone for PrefixLengthRequest
Source§fn clone(&self) -> PrefixLengthRequest
fn clone(&self) -> PrefixLengthRequest
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 PrefixLengthRequest
impl Debug for PrefixLengthRequest
Source§impl Default for PrefixLengthRequest
impl Default for PrefixLengthRequest
Source§fn default() -> PrefixLengthRequest
fn default() -> PrefixLengthRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrefixLengthRequest
impl<'de> Deserialize<'de> for PrefixLengthRequest
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 PrefixLengthRequest
impl PartialEq for PrefixLengthRequest
Source§impl Serialize for PrefixLengthRequest
impl Serialize for PrefixLengthRequest
impl StructuralPartialEq for PrefixLengthRequest
Auto Trait Implementations§
impl Freeze for PrefixLengthRequest
impl RefUnwindSafe for PrefixLengthRequest
impl Send for PrefixLengthRequest
impl Sync for PrefixLengthRequest
impl Unpin for PrefixLengthRequest
impl UnsafeUnpin for PrefixLengthRequest
impl UnwindSafe for PrefixLengthRequest
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