pub struct PatchedTableConfigRequest {
pub object_type: Option<String>,
pub table: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub user: Option<Option<i32>>,
pub weight: Option<i32>,
pub enabled: Option<bool>,
pub shared: Option<bool>,
pub columns: Option<Vec<String>>,
pub ordering: Option<Option<Vec<String>>>,
}Expand description
PatchedTableConfigRequest : 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§
§object_type: Option<String>§table: Option<String>§name: Option<String>§description: Option<String>§user: Option<Option<i32>>§weight: Option<i32>§enabled: Option<bool>§columns: Option<Vec<String>>§ordering: Option<Option<Vec<String>>>Implementations§
Source§impl PatchedTableConfigRequest
impl PatchedTableConfigRequest
Sourcepub fn new() -> PatchedTableConfigRequest
pub fn new() -> PatchedTableConfigRequest
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 PatchedTableConfigRequest
impl Clone for PatchedTableConfigRequest
Source§fn clone(&self) -> PatchedTableConfigRequest
fn clone(&self) -> PatchedTableConfigRequest
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 PatchedTableConfigRequest
impl Debug for PatchedTableConfigRequest
Source§impl Default for PatchedTableConfigRequest
impl Default for PatchedTableConfigRequest
Source§fn default() -> PatchedTableConfigRequest
fn default() -> PatchedTableConfigRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedTableConfigRequest
impl<'de> Deserialize<'de> for PatchedTableConfigRequest
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 PatchedTableConfigRequest
Auto Trait Implementations§
impl Freeze for PatchedTableConfigRequest
impl RefUnwindSafe for PatchedTableConfigRequest
impl Send for PatchedTableConfigRequest
impl Sync for PatchedTableConfigRequest
impl Unpin for PatchedTableConfigRequest
impl UnwindSafe for PatchedTableConfigRequest
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