pub struct Script {
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub module: Option<i32>,
pub name: Option<String>,
pub description: Option<Option<String>>,
pub vars: Option<Option<Value>>,
pub result: Option<Box<BriefJob>>,
pub display: Option<String>,
pub is_executable: Option<bool>,
}Expand description
Script : 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>§module: Option<i32>§name: Option<String>§description: Option<Option<String>>§vars: Option<Option<Value>>§result: Option<Box<BriefJob>>§display: Option<String>§is_executable: Option<bool>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Script
impl<'de> Deserialize<'de> for Script
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 Script
Auto Trait Implementations§
impl Freeze for Script
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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