pub struct BulkInventoryItemRequest {Show 18 fields
pub id: i32,
pub device: Box<BriefInterfaceRequestDevice>,
pub parent: Option<Option<i32>>,
pub name: String,
pub label: Option<String>,
pub status: Option<Status>,
pub role: Option<Option<Box<BulkInventoryItemRequestRole>>>,
pub manufacturer: Option<Option<Box<BulkInventoryItemRequestManufacturer>>>,
pub part_id: Option<String>,
pub serial: Option<String>,
pub asset_tag: Option<Option<String>>,
pub discovered: Option<bool>,
pub description: Option<String>,
pub component_type: Option<Option<String>>,
pub component_id: Option<Option<i64>>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
BulkInventoryItemRequest : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§id: i32§device: Box<BriefInterfaceRequestDevice>§parent: Option<Option<i32>>§name: String§label: Option<String>Physical label
status: Option<Status>offline- Offline *active- Active *planned- Planned *staged- Staged *failed- Failed *decommissioning- Decommissioning
role: Option<Option<Box<BulkInventoryItemRequestRole>>>§manufacturer: Option<Option<Box<BulkInventoryItemRequestManufacturer>>>§part_id: Option<String>Manufacturer-assigned part identifier
serial: Option<String>§asset_tag: Option<Option<String>>A unique tag used to identify this item
discovered: Option<bool>This item was automatically discovered
description: Option<String>§component_type: Option<Option<String>>§component_id: Option<Option<i64>>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl BulkInventoryItemRequest
impl BulkInventoryItemRequest
Sourcepub fn new(
id: i32,
device: BriefInterfaceRequestDevice,
name: String,
) -> BulkInventoryItemRequest
pub fn new( id: i32, device: BriefInterfaceRequestDevice, name: String, ) -> BulkInventoryItemRequest
Adds an owner field for models which have a ForeignKey to users.Owner.
Trait Implementations§
Source§impl Clone for BulkInventoryItemRequest
impl Clone for BulkInventoryItemRequest
Source§fn clone(&self) -> BulkInventoryItemRequest
fn clone(&self) -> BulkInventoryItemRequest
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 Debug for BulkInventoryItemRequest
impl Debug for BulkInventoryItemRequest
Source§impl Default for BulkInventoryItemRequest
impl Default for BulkInventoryItemRequest
Source§fn default() -> BulkInventoryItemRequest
fn default() -> BulkInventoryItemRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BulkInventoryItemRequest
impl<'de> Deserialize<'de> for BulkInventoryItemRequest
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 BulkInventoryItemRequest
impl PartialEq for BulkInventoryItemRequest
Source§impl Serialize for BulkInventoryItemRequest
impl Serialize for BulkInventoryItemRequest
impl StructuralPartialEq for BulkInventoryItemRequest
Auto Trait Implementations§
impl Freeze for BulkInventoryItemRequest
impl RefUnwindSafe for BulkInventoryItemRequest
impl Send for BulkInventoryItemRequest
impl Sync for BulkInventoryItemRequest
impl Unpin for BulkInventoryItemRequest
impl UnsafeUnpin for BulkInventoryItemRequest
impl UnwindSafe for BulkInventoryItemRequest
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