pub struct ConfigContext {Show 18 fields
pub id: Option<Uuid>,
pub object_type: Option<String>,
pub display: Option<String>,
pub url: Option<String>,
pub natural_slug: Option<String>,
pub owner_content_type: Option<Option<String>>,
pub owner: Option<Option<Box<ConfigContextOwner>>>,
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 created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub notes_url: Option<String>,
pub tags: Option<Vec<ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}Expand description
ConfigContext : 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>§object_type: Option<String>§display: Option<String>Human friendly display value
url: Option<String>§natural_slug: Option<String>§owner_content_type: Option<Option<String>>§owner: Option<Option<Box<ConfigContextOwner>>>§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>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§notes_url: Option<String>Implementations§
Source§impl ConfigContext
impl ConfigContext
Sourcepub fn new(name: String, data: Option<Value>) -> ConfigContext
pub fn new(name: String, data: Option<Value>) -> ConfigContext
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 ConfigContext
impl Clone for ConfigContext
Source§fn clone(&self) -> ConfigContext
fn clone(&self) -> ConfigContext
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 ConfigContext
impl Debug for ConfigContext
Source§impl Default for ConfigContext
impl Default for ConfigContext
Source§fn default() -> ConfigContext
fn default() -> ConfigContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigContext
impl<'de> Deserialize<'de> for ConfigContext
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 ConfigContext
impl PartialEq for ConfigContext
Source§impl Serialize for ConfigContext
impl Serialize for ConfigContext
impl StructuralPartialEq for ConfigContext
Auto Trait Implementations§
impl Freeze for ConfigContext
impl RefUnwindSafe for ConfigContext
impl Send for ConfigContext
impl Sync for ConfigContext
impl Unpin for ConfigContext
impl UnsafeUnpin for ConfigContext
impl UnwindSafe for ConfigContext
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