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