pub struct PatchedConfigContextRequest {Show 20 fields
pub name: Option<String>,
pub weight: Option<i32>,
pub profile: Option<Option<Box<ConfigContextRequestProfile>>>,
pub description: Option<String>,
pub is_active: Option<bool>,
pub regions: Option<Vec<i32>>,
pub site_groups: Option<Vec<i32>>,
pub sites: Option<Vec<i32>>,
pub locations: Option<Vec<i32>>,
pub device_types: Option<Vec<i32>>,
pub roles: Option<Vec<i32>>,
pub platforms: Option<Vec<i32>>,
pub cluster_types: Option<Vec<i32>>,
pub cluster_groups: Option<Vec<i32>>,
pub clusters: Option<Vec<i32>>,
pub tenant_groups: Option<Vec<i32>>,
pub tenants: Option<Vec<i32>>,
pub tags: Option<Vec<String>>,
pub data_source: Option<Box<ConfigContextProfileRequestDataSource>>,
pub data: Option<Option<Value>>,
}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§
§name: Option<String>§weight: Option<i32>§profile: Option<Option<Box<ConfigContextRequestProfile>>>§description: Option<String>§is_active: Option<bool>§regions: Option<Vec<i32>>§site_groups: Option<Vec<i32>>§sites: Option<Vec<i32>>§locations: Option<Vec<i32>>§device_types: Option<Vec<i32>>§roles: Option<Vec<i32>>§platforms: Option<Vec<i32>>§cluster_types: Option<Vec<i32>>§cluster_groups: Option<Vec<i32>>§clusters: Option<Vec<i32>>§tenant_groups: Option<Vec<i32>>§tenants: Option<Vec<i32>>§data_source: Option<Box<ConfigContextProfileRequestDataSource>>§data: Option<Option<Value>>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 · 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
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 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