pub struct PatchedWritableConsolePortTemplateRequest {
pub device_type: Option<Option<Box<ConsolePortTemplateRequestDeviceType>>>,
pub module_type: Option<Option<Box<ConsolePortTemplateRequestModuleType>>>,
pub name: Option<String>,
pub label: Option<String>,
pub type: Option<Option<RHashType>>,
pub description: Option<String>,
}Expand description
PatchedWritableConsolePortTemplateRequest : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Fields§
§device_type: Option<Option<Box<ConsolePortTemplateRequestDeviceType>>>§module_type: Option<Option<Box<ConsolePortTemplateRequestModuleType>>>§name: Option<String>{module} is accepted as a substitution for the module bay position when attached to a module type.
label: Option<String>Physical label
type: Option<Option<RHashType>>de-9- DE-9 *db-25- DB-25 *rj-11- RJ-11 *rj-12- RJ-12 *rj-45- RJ-45 *mini-din-8- Mini-DIN 8 *usb-a- USB Type A *usb-b- USB Type B *usb-c- USB Type C *usb-mini-a- USB Mini A *usb-mini-b- USB Mini B *usb-micro-a- USB Micro A *usb-micro-b- USB Micro B *usb-micro-ab- USB Micro AB *other- Other
description: Option<String>Implementations§
Source§impl PatchedWritableConsolePortTemplateRequest
impl PatchedWritableConsolePortTemplateRequest
Sourcepub fn new() -> PatchedWritableConsolePortTemplateRequest
pub fn new() -> PatchedWritableConsolePortTemplateRequest
Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)
Trait Implementations§
Source§impl Clone for PatchedWritableConsolePortTemplateRequest
impl Clone for PatchedWritableConsolePortTemplateRequest
Source§fn clone(&self) -> PatchedWritableConsolePortTemplateRequest
fn clone(&self) -> PatchedWritableConsolePortTemplateRequest
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 PatchedWritableConsolePortTemplateRequest
impl Default for PatchedWritableConsolePortTemplateRequest
Source§fn default() -> PatchedWritableConsolePortTemplateRequest
fn default() -> PatchedWritableConsolePortTemplateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableConsolePortTemplateRequest
impl<'de> Deserialize<'de> for PatchedWritableConsolePortTemplateRequest
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 PatchedWritableConsolePortTemplateRequest
impl PartialEq for PatchedWritableConsolePortTemplateRequest
Source§fn eq(&self, other: &PatchedWritableConsolePortTemplateRequest) -> bool
fn eq(&self, other: &PatchedWritableConsolePortTemplateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedWritableConsolePortTemplateRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableConsolePortTemplateRequest
impl RefUnwindSafe for PatchedWritableConsolePortTemplateRequest
impl Send for PatchedWritableConsolePortTemplateRequest
impl Sync for PatchedWritableConsolePortTemplateRequest
impl Unpin for PatchedWritableConsolePortTemplateRequest
impl UnwindSafe for PatchedWritableConsolePortTemplateRequest
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