pub struct PatchedConfigContextRequest {Show 20 fields
pub id: Option<Uuid>,
pub owner_content_type: Option<Option<String>>,
pub name: Option<String>,
pub owner_object_id: Option<Option<Uuid>>,
pub weight: Option<i32>,
pub description: Option<String>,
pub is_active: Option<bool>,
pub data: Option<Option<Value>>,
pub config_context_schema: Option<Option<Box<BulkWritableConfigContextRequestConfigContextSchema>>>,
pub locations: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub roles: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub device_types: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub device_redundancy_groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub platforms: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub cluster_groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub clusters: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub tenant_groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub tenants: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub device_families: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
PatchedConfigContextRequest : 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§
§id: Option<Uuid>§owner_content_type: Option<Option<String>>§name: Option<String>§owner_object_id: Option<Option<Uuid>>§weight: Option<i32>§description: Option<String>§is_active: Option<bool>§data: Option<Option<Value>>§config_context_schema: Option<Option<Box<BulkWritableConfigContextRequestConfigContextSchema>>>§locations: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§roles: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§device_types: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§device_redundancy_groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§platforms: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§cluster_groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§clusters: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§tenant_groups: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§tenants: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>§device_families: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>Implementations§
Source§impl PatchedConfigContextRequest
impl PatchedConfigContextRequest
Sourcepub fn new() -> PatchedConfigContextRequest
pub fn new() -> PatchedConfigContextRequest
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 PatchedConfigContextRequest
impl Clone for PatchedConfigContextRequest
Source§fn clone(&self) -> PatchedConfigContextRequest
fn clone(&self) -> PatchedConfigContextRequest
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 PatchedConfigContextRequest
impl Debug for PatchedConfigContextRequest
Source§impl Default for PatchedConfigContextRequest
impl Default for PatchedConfigContextRequest
Source§fn default() -> PatchedConfigContextRequest
fn default() -> PatchedConfigContextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedConfigContextRequest
impl<'de> Deserialize<'de> for PatchedConfigContextRequest
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 PatchedConfigContextRequest
impl PartialEq for PatchedConfigContextRequest
Source§fn eq(&self, other: &PatchedConfigContextRequest) -> bool
fn eq(&self, other: &PatchedConfigContextRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedConfigContextRequest
Auto Trait Implementations§
impl Freeze for PatchedConfigContextRequest
impl RefUnwindSafe for PatchedConfigContextRequest
impl Send for PatchedConfigContextRequest
impl Sync for PatchedConfigContextRequest
impl Unpin for PatchedConfigContextRequest
impl UnsafeUnpin for PatchedConfigContextRequest
impl UnwindSafe for PatchedConfigContextRequest
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