pub struct TableConfig {Show 16 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
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>>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
TableConfig : 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_url: Option<String>§display: Option<String>§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>>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Source§impl TableConfig
impl TableConfig
Sourcepub fn new(
object_type: String,
table: String,
name: String,
columns: Vec<String>,
) -> TableConfig
pub fn new( object_type: String, table: String, name: String, columns: Vec<String>, ) -> TableConfig
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 TableConfig
impl Clone for TableConfig
Source§fn clone(&self) -> TableConfig
fn clone(&self) -> TableConfig
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 TableConfig
impl Debug for TableConfig
Source§impl Default for TableConfig
impl Default for TableConfig
Source§fn default() -> TableConfig
fn default() -> TableConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TableConfig
impl<'de> Deserialize<'de> for TableConfig
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 TableConfig
impl PartialEq for TableConfig
Source§impl Serialize for TableConfig
impl Serialize for TableConfig
impl StructuralPartialEq for TableConfig
Auto Trait Implementations§
impl Freeze for TableConfig
impl RefUnwindSafe for TableConfig
impl Send for TableConfig
impl Sync for TableConfig
impl Unpin for TableConfig
impl UnwindSafe for TableConfig
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