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