pub struct BriefUser {
pub id: Option<i32>,
pub url: Option<String>,
pub display: Option<String>,
pub username: String,
}Expand description
BriefUser : 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>§username: StringRequired. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BriefUser
impl<'de> Deserialize<'de> for BriefUser
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 BriefUser
Auto Trait Implementations§
impl Freeze for BriefUser
impl RefUnwindSafe for BriefUser
impl Send for BriefUser
impl Sync for BriefUser
impl Unpin for BriefUser
impl UnwindSafe for BriefUser
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