pub struct InventoryItemRole {Show 13 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub color: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub inventoryitem_count: Option<i64>,
}Expand description
InventoryItemRole : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§slug: String§color: Option<String>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§inventoryitem_count: Option<i64>Implementations§
Source§impl InventoryItemRole
impl InventoryItemRole
Sourcepub fn new(name: String, slug: String) -> InventoryItemRole
pub fn new(name: String, slug: String) -> InventoryItemRole
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for InventoryItemRole
impl Clone for InventoryItemRole
Source§fn clone(&self) -> InventoryItemRole
fn clone(&self) -> InventoryItemRole
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 InventoryItemRole
impl Debug for InventoryItemRole
Source§impl Default for InventoryItemRole
impl Default for InventoryItemRole
Source§fn default() -> InventoryItemRole
fn default() -> InventoryItemRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InventoryItemRole
impl<'de> Deserialize<'de> for InventoryItemRole
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 InventoryItemRole
impl PartialEq for InventoryItemRole
Source§impl Serialize for InventoryItemRole
impl Serialize for InventoryItemRole
impl StructuralPartialEq for InventoryItemRole
Auto Trait Implementations§
impl Freeze for InventoryItemRole
impl RefUnwindSafe for InventoryItemRole
impl Send for InventoryItemRole
impl Sync for InventoryItemRole
impl Unpin for InventoryItemRole
impl UnwindSafe for InventoryItemRole
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