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