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