pub struct WritableFrontPortTemplateRequest {
pub id: Option<Uuid>,
pub name: String,
pub label: Option<String>,
pub description: Option<String>,
pub type: PortTypeChoices,
pub rear_port_position: Option<i32>,
pub device_type: Option<Option<Box<ApprovalWorkflowUser>>>,
pub module_type: Option<Option<Box<ApprovalWorkflowUser>>>,
pub rear_port_template: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>,
pub custom_fields: Option<HashMap<String, Value>>,
pub relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>,
}Expand description
WritableFrontPortTemplateRequest : 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>§name: String§label: Option<String>Physical label
description: Option<String>§type: PortTypeChoices§rear_port_position: Option<i32>§device_type: Option<Option<Box<ApprovalWorkflowUser>>>§module_type: Option<Option<Box<ApprovalWorkflowUser>>>§rear_port_template: Box<ApprovalWorkflowStageResponseApprovalWorkflowStage>§custom_fields: Option<HashMap<String, Value>>§relationships: Option<HashMap<String, ApprovalWorkflowDefinitionRequestRelationshipsValue>>Implementations§
Source§impl WritableFrontPortTemplateRequest
impl WritableFrontPortTemplateRequest
Sourcepub fn new(
name: String,
type: PortTypeChoices,
rear_port_template: ApprovalWorkflowStageResponseApprovalWorkflowStage,
) -> WritableFrontPortTemplateRequest
pub fn new( name: String, type: PortTypeChoices, rear_port_template: ApprovalWorkflowStageResponseApprovalWorkflowStage, ) -> WritableFrontPortTemplateRequest
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 WritableFrontPortTemplateRequest
impl Clone for WritableFrontPortTemplateRequest
Source§fn clone(&self) -> WritableFrontPortTemplateRequest
fn clone(&self) -> WritableFrontPortTemplateRequest
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 Default for WritableFrontPortTemplateRequest
impl Default for WritableFrontPortTemplateRequest
Source§fn default() -> WritableFrontPortTemplateRequest
fn default() -> WritableFrontPortTemplateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritableFrontPortTemplateRequest
impl<'de> Deserialize<'de> for WritableFrontPortTemplateRequest
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 WritableFrontPortTemplateRequest
impl PartialEq for WritableFrontPortTemplateRequest
Source§fn eq(&self, other: &WritableFrontPortTemplateRequest) -> bool
fn eq(&self, other: &WritableFrontPortTemplateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WritableFrontPortTemplateRequest
Auto Trait Implementations§
impl Freeze for WritableFrontPortTemplateRequest
impl RefUnwindSafe for WritableFrontPortTemplateRequest
impl Send for WritableFrontPortTemplateRequest
impl Sync for WritableFrontPortTemplateRequest
impl Unpin for WritableFrontPortTemplateRequest
impl UnsafeUnpin for WritableFrontPortTemplateRequest
impl UnwindSafe for WritableFrontPortTemplateRequest
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