pub struct BulkWritableComputedFieldRequest {
pub id: Uuid,
pub content_type: String,
pub key: Option<String>,
pub grouping: Option<String>,
pub label: String,
pub description: Option<String>,
pub template: String,
pub fallback_value: Option<String>,
pub weight: Option<i32>,
pub advanced_ui: Option<bool>,
}Expand description
BulkWritableComputedFieldRequest : 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§content_type: String§key: Option<String>Internal field name. Please use underscores rather than dashes in this key.
grouping: Option<String>Human-readable grouping that this computed field belongs to.
label: StringName of the field as displayed to users
description: Option<String>§template: StringJinja2 template code for field value
fallback_value: Option<String>Fallback value (if any) to be output for the field in the case of a template rendering error.
weight: Option<i32>§advanced_ui: Option<bool>Hide this field from the object’s primary information tab. It will appear in the "Advanced" tab instead.
Implementations§
Source§impl BulkWritableComputedFieldRequest
impl BulkWritableComputedFieldRequest
Sourcepub fn new(
id: Uuid,
content_type: String,
label: String,
template: String,
) -> BulkWritableComputedFieldRequest
pub fn new( id: Uuid, content_type: String, label: String, template: String, ) -> BulkWritableComputedFieldRequest
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 BulkWritableComputedFieldRequest
impl Clone for BulkWritableComputedFieldRequest
Source§fn clone(&self) -> BulkWritableComputedFieldRequest
fn clone(&self) -> BulkWritableComputedFieldRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for BulkWritableComputedFieldRequest
impl Default for BulkWritableComputedFieldRequest
Source§fn default() -> BulkWritableComputedFieldRequest
fn default() -> BulkWritableComputedFieldRequest
Source§impl<'de> Deserialize<'de> for BulkWritableComputedFieldRequest
impl<'de> Deserialize<'de> for BulkWritableComputedFieldRequest
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>,
Source§impl PartialEq for BulkWritableComputedFieldRequest
impl PartialEq for BulkWritableComputedFieldRequest
Source§fn eq(&self, other: &BulkWritableComputedFieldRequest) -> bool
fn eq(&self, other: &BulkWritableComputedFieldRequest) -> bool
self and other values to be equal, and is used by ==.