pub struct BriefTag {
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub name: String,
pub slug: String,
pub color: Option<String>,
pub description: Option<String>,
}Expand description
BriefTag : 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§slug: String§color: Option<String>§description: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BriefTag
impl<'de> Deserialize<'de> for BriefTag
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 BriefTag
Auto Trait Implementations§
impl Freeze for BriefTag
impl RefUnwindSafe for BriefTag
impl Send for BriefTag
impl Sync for BriefTag
impl Unpin for BriefTag
impl UnwindSafe for BriefTag
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