pub struct PatchedInventoryItemRoleRequest {
pub name: Option<String>,
pub slug: Option<String>,
pub color: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PatchedInventoryItemRoleRequest : Adds support for custom fields and tags.
Fields§
§name: Option<String>§slug: Option<String>§color: Option<String>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedInventoryItemRoleRequest
impl PatchedInventoryItemRoleRequest
Sourcepub fn new() -> PatchedInventoryItemRoleRequest
pub fn new() -> PatchedInventoryItemRoleRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedInventoryItemRoleRequest
impl Clone for PatchedInventoryItemRoleRequest
Source§fn clone(&self) -> PatchedInventoryItemRoleRequest
fn clone(&self) -> PatchedInventoryItemRoleRequest
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 Default for PatchedInventoryItemRoleRequest
impl Default for PatchedInventoryItemRoleRequest
Source§fn default() -> PatchedInventoryItemRoleRequest
fn default() -> PatchedInventoryItemRoleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedInventoryItemRoleRequest
impl<'de> Deserialize<'de> for PatchedInventoryItemRoleRequest
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 PatchedInventoryItemRoleRequest
impl PartialEq for PatchedInventoryItemRoleRequest
Source§fn eq(&self, other: &PatchedInventoryItemRoleRequest) -> bool
fn eq(&self, other: &PatchedInventoryItemRoleRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedInventoryItemRoleRequest
Auto Trait Implementations§
impl Freeze for PatchedInventoryItemRoleRequest
impl RefUnwindSafe for PatchedInventoryItemRoleRequest
impl Send for PatchedInventoryItemRoleRequest
impl Sync for PatchedInventoryItemRoleRequest
impl Unpin for PatchedInventoryItemRoleRequest
impl UnwindSafe for PatchedInventoryItemRoleRequest
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