pub struct WritablePrefixRequest {Show 16 fields
pub id: Option<Uuid>,
pub prefix: String,
pub location: Option<Option<Box<BulkWritablePrefixRequestLocation>>>,
pub type: Option<PrefixTypeChoices>,
pub date_allocated: Option<Option<String>>,
pub description: Option<String>,
pub status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub role: Option<Option<Box<ApprovalWorkflowUser>>>,
pub parent: Option<Option<Box<BulkWritablePrefixRequestParent>>>,
pub namespace: Option<Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub tenant: Option<Option<Box<ApprovalWorkflowUser>>>,
pub vlan: Option<Option<Box<ApprovalWorkflowUser>>>,
pub rir: Option<Option<Box<BulkWritablePrefixRequestRir>>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
}Expand description
WritablePrefixRequest : Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
Fields§
§id: Option<Uuid>§prefix: String§location: Option<Option<Box<BulkWritablePrefixRequestLocation>>>§type: Option<PrefixTypeChoices>§date_allocated: Option<Option<String>>Date this prefix was allocated to an RIR, reserved in IPAM, etc.
description: Option<String>§status: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§role: Option<Option<Box<ApprovalWorkflowUser>>>§parent: Option<Option<Box<BulkWritablePrefixRequestParent>>>§namespace: Option<Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§tenant: Option<Option<Box<ApprovalWorkflowUser>>>§vlan: Option<Option<Box<ApprovalWorkflowUser>>>§rir: Option<Option<Box<BulkWritablePrefixRequestRir>>>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl WritablePrefixRequest
impl WritablePrefixRequest
Sourcepub fn new(
prefix: String,
status: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> WritablePrefixRequest
pub fn new( prefix: String, status: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> WritablePrefixRequest
Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
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 UnsafeUnpin 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