pub struct PatchedBulkTableConfigRequest {
pub id: i32,
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
PatchedBulkTableConfigRequest : 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: i32§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 PatchedBulkTableConfigRequest
impl PatchedBulkTableConfigRequest
Sourcepub fn new(id: i32) -> PatchedBulkTableConfigRequest
pub fn new(id: i32) -> PatchedBulkTableConfigRequest
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 PatchedBulkTableConfigRequest
impl Clone for PatchedBulkTableConfigRequest
Source§fn clone(&self) -> PatchedBulkTableConfigRequest
fn clone(&self) -> PatchedBulkTableConfigRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PatchedBulkTableConfigRequest
impl Default for PatchedBulkTableConfigRequest
Source§fn default() -> PatchedBulkTableConfigRequest
fn default() -> PatchedBulkTableConfigRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedBulkTableConfigRequest
impl<'de> Deserialize<'de> for PatchedBulkTableConfigRequest
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 PatchedBulkTableConfigRequest
Auto Trait Implementations§
impl Freeze for PatchedBulkTableConfigRequest
impl RefUnwindSafe for PatchedBulkTableConfigRequest
impl Send for PatchedBulkTableConfigRequest
impl Sync for PatchedBulkTableConfigRequest
impl Unpin for PatchedBulkTableConfigRequest
impl UnsafeUnpin for PatchedBulkTableConfigRequest
impl UnwindSafe for PatchedBulkTableConfigRequest
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