pub struct WritablePlatformRequest {
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 comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
WritablePlatformRequest : Extends PrimaryModelSerializer to include MPTT support.
Fields§
§parent: Option<Option<i32>>§name: String§slug: 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 WritablePlatformRequest
impl WritablePlatformRequest
Sourcepub fn new(name: String, slug: String) -> WritablePlatformRequest
pub fn new(name: String, slug: String) -> WritablePlatformRequest
Extends PrimaryModelSerializer to include MPTT support.
Trait Implementations§
Source§impl Clone for WritablePlatformRequest
impl Clone for WritablePlatformRequest
Source§fn clone(&self) -> WritablePlatformRequest
fn clone(&self) -> WritablePlatformRequest
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 WritablePlatformRequest
impl Debug for WritablePlatformRequest
Source§impl Default for WritablePlatformRequest
impl Default for WritablePlatformRequest
Source§fn default() -> WritablePlatformRequest
fn default() -> WritablePlatformRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritablePlatformRequest
impl<'de> Deserialize<'de> for WritablePlatformRequest
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 WritablePlatformRequest
impl PartialEq for WritablePlatformRequest
Source§impl Serialize for WritablePlatformRequest
impl Serialize for WritablePlatformRequest
impl StructuralPartialEq for WritablePlatformRequest
Auto Trait Implementations§
impl Freeze for WritablePlatformRequest
impl RefUnwindSafe for WritablePlatformRequest
impl Send for WritablePlatformRequest
impl Sync for WritablePlatformRequest
impl Unpin for WritablePlatformRequest
impl UnwindSafe for WritablePlatformRequest
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