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