pub struct BulkWritableConfigContextRequest {Show 20 fields
pub id: Uuid,
pub owner_content_type: Option<Option<String>>,
pub name: String,
pub owner_object_id: Option<Option<Uuid>>,
pub weight: Option<i32>,
pub description: Option<String>,
pub is_active: Option<bool>,
pub data: 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
BulkWritableConfigContextRequest : 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: Uuid§owner_content_type: Option<Option<String>>§name: String§owner_object_id: Option<Option<Uuid>>§weight: Option<i32>§description: Option<String>§is_active: Option<bool>§data: 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 BulkWritableConfigContextRequest
impl BulkWritableConfigContextRequest
Sourcepub fn new(
id: Uuid,
name: String,
data: Option<Value>,
) -> BulkWritableConfigContextRequest
pub fn new( id: Uuid, name: String, data: Option<Value>, ) -> BulkWritableConfigContextRequest
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 BulkWritableConfigContextRequest
impl Clone for BulkWritableConfigContextRequest
Source§fn clone(&self) -> BulkWritableConfigContextRequest
fn clone(&self) -> BulkWritableConfigContextRequest
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 BulkWritableConfigContextRequest
impl Default for BulkWritableConfigContextRequest
Source§fn default() -> BulkWritableConfigContextRequest
fn default() -> BulkWritableConfigContextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BulkWritableConfigContextRequest
impl<'de> Deserialize<'de> for BulkWritableConfigContextRequest
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 BulkWritableConfigContextRequest
impl PartialEq for BulkWritableConfigContextRequest
Source§fn eq(&self, other: &BulkWritableConfigContextRequest) -> bool
fn eq(&self, other: &BulkWritableConfigContextRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BulkWritableConfigContextRequest
Auto Trait Implementations§
impl Freeze for BulkWritableConfigContextRequest
impl RefUnwindSafe for BulkWritableConfigContextRequest
impl Send for BulkWritableConfigContextRequest
impl Sync for BulkWritableConfigContextRequest
impl Unpin for BulkWritableConfigContextRequest
impl UnsafeUnpin for BulkWritableConfigContextRequest
impl UnwindSafe for BulkWritableConfigContextRequest
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