pub struct JobVariable {
pub name: Option<String>,
pub type: Option<String>,
pub label: Option<String>,
pub help_text: Option<String>,
pub default: Option<Option<Value>>,
pub required: Option<bool>,
pub min_length: Option<i32>,
pub max_length: Option<i32>,
pub min_value: Option<i32>,
pub max_value: Option<i32>,
pub choices: Option<Option<Value>>,
pub model: Option<String>,
}Expand description
JobVariable : Serializer used for responses from the JobModelViewSet.variables() detail endpoint.
Fields§
§name: Option<String>§type: Option<String>§label: Option<String>§help_text: Option<String>§default: Option<Option<Value>>§required: Option<bool>§min_length: Option<i32>§max_length: Option<i32>§min_value: Option<i32>§max_value: Option<i32>§choices: Option<Option<Value>>§model: Option<String>Implementations§
Source§impl JobVariable
impl JobVariable
Sourcepub fn new() -> JobVariable
pub fn new() -> JobVariable
Serializer used for responses from the JobModelViewSet.variables() detail endpoint.
Trait Implementations§
Source§impl Clone for JobVariable
impl Clone for JobVariable
Source§fn clone(&self) -> JobVariable
fn clone(&self) -> JobVariable
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 JobVariable
impl Debug for JobVariable
Source§impl Default for JobVariable
impl Default for JobVariable
Source§fn default() -> JobVariable
fn default() -> JobVariable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JobVariable
impl<'de> Deserialize<'de> for JobVariable
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 JobVariable
impl PartialEq for JobVariable
Source§impl Serialize for JobVariable
impl Serialize for JobVariable
impl StructuralPartialEq for JobVariable
Auto Trait Implementations§
impl Freeze for JobVariable
impl RefUnwindSafe for JobVariable
impl Send for JobVariable
impl Sync for JobVariable
impl Unpin for JobVariable
impl UnsafeUnpin for JobVariable
impl UnwindSafe for JobVariable
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