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