pub struct DcimInventoryItemTemplatesCreateRequest {
pub device_type: Box<DeviceBayTemplateRequestDeviceType>,
pub parent: Option<Option<i32>>,
pub name: String,
pub label: Option<String>,
pub role: Option<Option<Box<InventoryItemRequestRole>>>,
pub manufacturer: Option<Option<Box<InventoryItemRequestManufacturer>>>,
pub part_id: Option<String>,
pub description: Option<String>,
pub component_type: Option<Option<String>>,
pub component_id: Option<Option<i64>>,
}Fields§
§device_type: Box<DeviceBayTemplateRequestDeviceType>§parent: Option<Option<i32>>§name: String{module} is accepted as a substitution for the module bay position when attached to a module type.
label: Option<String>Physical label
role: Option<Option<Box<InventoryItemRequestRole>>>§manufacturer: Option<Option<Box<InventoryItemRequestManufacturer>>>§part_id: Option<String>Manufacturer-assigned part identifier
description: Option<String>§component_type: Option<Option<String>>§component_id: Option<Option<i64>>Implementations§
Source§impl DcimInventoryItemTemplatesCreateRequest
impl DcimInventoryItemTemplatesCreateRequest
pub fn new( device_type: DeviceBayTemplateRequestDeviceType, name: String, ) -> DcimInventoryItemTemplatesCreateRequest
Trait Implementations§
Source§impl Clone for DcimInventoryItemTemplatesCreateRequest
impl Clone for DcimInventoryItemTemplatesCreateRequest
Source§fn clone(&self) -> DcimInventoryItemTemplatesCreateRequest
fn clone(&self) -> DcimInventoryItemTemplatesCreateRequest
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 DcimInventoryItemTemplatesCreateRequest
impl Default for DcimInventoryItemTemplatesCreateRequest
Source§fn default() -> DcimInventoryItemTemplatesCreateRequest
fn default() -> DcimInventoryItemTemplatesCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DcimInventoryItemTemplatesCreateRequest
impl<'de> Deserialize<'de> for DcimInventoryItemTemplatesCreateRequest
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 DcimInventoryItemTemplatesCreateRequest
impl PartialEq for DcimInventoryItemTemplatesCreateRequest
Source§fn eq(&self, other: &DcimInventoryItemTemplatesCreateRequest) -> bool
fn eq(&self, other: &DcimInventoryItemTemplatesCreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DcimInventoryItemTemplatesCreateRequest
Auto Trait Implementations§
impl Freeze for DcimInventoryItemTemplatesCreateRequest
impl RefUnwindSafe for DcimInventoryItemTemplatesCreateRequest
impl Send for DcimInventoryItemTemplatesCreateRequest
impl Sync for DcimInventoryItemTemplatesCreateRequest
impl Unpin for DcimInventoryItemTemplatesCreateRequest
impl UnsafeUnpin for DcimInventoryItemTemplatesCreateRequest
impl UnwindSafe for DcimInventoryItemTemplatesCreateRequest
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