pub struct WorkflowSpec(pub Map<String, Value>);Expand description
A workflow spec. The canonical JSON Schema is available at /schemas/workflow.schema.json.
JSON schema
{
"description": "A `workflow` spec. The canonical JSON Schema is available at `/schemas/workflow.schema.json`.",
"type": "object",
"additionalProperties": true
}Tuple Fields§
§0: Map<String, Value>Methods from Deref<Target = Map<String, Value>>§
Sourcepub fn get<Q>(&self, key: &Q) -> Option<&Value>
pub fn get<Q>(&self, key: &Q) -> Option<&Value>
Returns a reference to the value corresponding to the key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Sourcepub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn contains_key<Q>(&self, key: &Q) -> bool
Returns true if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type, but the ordering on the borrowed form must match the ordering on the key type.
Trait Implementations§
Source§impl Clone for WorkflowSpec
impl Clone for WorkflowSpec
Source§fn clone(&self) -> WorkflowSpec
fn clone(&self) -> WorkflowSpec
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 WorkflowSpec
impl Debug for WorkflowSpec
Source§impl Deref for WorkflowSpec
impl Deref for WorkflowSpec
Source§impl<'de> Deserialize<'de> for WorkflowSpec
impl<'de> Deserialize<'de> for WorkflowSpec
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 From<&WorkflowSpec> for WorkflowSpec
impl From<&WorkflowSpec> for WorkflowSpec
Source§fn from(value: &WorkflowSpec) -> Self
fn from(value: &WorkflowSpec) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowSpec> for Map<String, Value>
impl From<WorkflowSpec> for Map<String, Value>
Source§fn from(value: WorkflowSpec) -> Self
fn from(value: WorkflowSpec) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowSpec> for ModelRelayApi
impl From<WorkflowSpec> for ModelRelayApi
Source§fn from(value: WorkflowSpec) -> Self
fn from(value: WorkflowSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkflowSpec
impl PartialEq for WorkflowSpec
Source§impl Serialize for WorkflowSpec
impl Serialize for WorkflowSpec
impl StructuralPartialEq for WorkflowSpec
Auto Trait Implementations§
impl Freeze for WorkflowSpec
impl RefUnwindSafe for WorkflowSpec
impl Send for WorkflowSpec
impl Sync for WorkflowSpec
impl Unpin for WorkflowSpec
impl UnwindSafe for WorkflowSpec
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