pub struct BriefConfigContextProfile {
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub name: String,
pub description: Option<String>,
}Expand description
BriefConfigContextProfile : 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: Option<String>§name: String§description: Option<String>Implementations§
Source§impl BriefConfigContextProfile
impl BriefConfigContextProfile
Sourcepub fn new(name: String) -> BriefConfigContextProfile
pub fn new(name: String) -> BriefConfigContextProfile
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 BriefConfigContextProfile
impl Clone for BriefConfigContextProfile
Source§fn clone(&self) -> BriefConfigContextProfile
fn clone(&self) -> BriefConfigContextProfile
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 BriefConfigContextProfile
impl Debug for BriefConfigContextProfile
Source§impl Default for BriefConfigContextProfile
impl Default for BriefConfigContextProfile
Source§fn default() -> BriefConfigContextProfile
fn default() -> BriefConfigContextProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BriefConfigContextProfile
impl<'de> Deserialize<'de> for BriefConfigContextProfile
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 BriefConfigContextProfile
Auto Trait Implementations§
impl Freeze for BriefConfigContextProfile
impl RefUnwindSafe for BriefConfigContextProfile
impl Send for BriefConfigContextProfile
impl Sync for BriefConfigContextProfile
impl Unpin for BriefConfigContextProfile
impl UnwindSafe for BriefConfigContextProfile
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