pub struct ConfigContextProfile {Show 15 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub name: String,
pub description: Option<String>,
pub schema: Option<Option<Value>>,
pub tags: Option<Vec<String>>,
pub comments: Option<String>,
pub data_source: Option<Box<BriefDataSource>>,
pub data_path: Option<String>,
pub data_file: Option<Box<BriefDataFile>>,
pub data_synced: Option<Option<String>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
ConfigContextProfile : 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<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§name: String§description: Option<String>§schema: Option<Option<Value>>A JSON schema specifying the structure of the context data for this profile
comments: Option<String>§data_source: Option<Box<BriefDataSource>>§data_path: Option<String>Path to remote file (relative to data source root)
data_file: Option<Box<BriefDataFile>>§data_synced: Option<Option<String>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Source§impl ConfigContextProfile
impl ConfigContextProfile
Sourcepub fn new(name: String) -> ConfigContextProfile
pub fn new(name: String) -> ConfigContextProfile
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 ConfigContextProfile
impl Clone for ConfigContextProfile
Source§fn clone(&self) -> ConfigContextProfile
fn clone(&self) -> ConfigContextProfile
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 ConfigContextProfile
impl Debug for ConfigContextProfile
Source§impl Default for ConfigContextProfile
impl Default for ConfigContextProfile
Source§fn default() -> ConfigContextProfile
fn default() -> ConfigContextProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigContextProfile
impl<'de> Deserialize<'de> for ConfigContextProfile
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 ConfigContextProfile
impl PartialEq for ConfigContextProfile
Source§impl Serialize for ConfigContextProfile
impl Serialize for ConfigContextProfile
impl StructuralPartialEq for ConfigContextProfile
Auto Trait Implementations§
impl Freeze for ConfigContextProfile
impl RefUnwindSafe for ConfigContextProfile
impl Send for ConfigContextProfile
impl Sync for ConfigContextProfile
impl Unpin for ConfigContextProfile
impl UnwindSafe for ConfigContextProfile
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