pub struct WorkflowSpecV0(pub Map<String, Value>);Expand description
A workflow.v0 spec. The canonical JSON Schema is available at /schemas/workflow_v0.schema.json.
JSON schema
{
"description": "A `workflow.v0` spec. The canonical JSON Schema is available at `/schemas/workflow_v0.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 WorkflowSpecV0
impl Clone for WorkflowSpecV0
Source§fn clone(&self) -> WorkflowSpecV0
fn clone(&self) -> WorkflowSpecV0
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowSpecV0
impl Debug for WorkflowSpecV0
Source§impl Deref for WorkflowSpecV0
impl Deref for WorkflowSpecV0
Source§impl<'de> Deserialize<'de> for WorkflowSpecV0
impl<'de> Deserialize<'de> for WorkflowSpecV0
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<&WorkflowSpecV0> for WorkflowSpecV0
impl From<&WorkflowSpecV0> for WorkflowSpecV0
Source§fn from(value: &WorkflowSpecV0) -> Self
fn from(value: &WorkflowSpecV0) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowSpecV0> for Map<String, Value>
impl From<WorkflowSpecV0> for Map<String, Value>
Source§fn from(value: WorkflowSpecV0) -> Self
fn from(value: WorkflowSpecV0) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowSpecV0> for ModelRelayApi
impl From<WorkflowSpecV0> for ModelRelayApi
Source§fn from(value: WorkflowSpecV0) -> Self
fn from(value: WorkflowSpecV0) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkflowSpecV0
impl PartialEq for WorkflowSpecV0
Source§impl Serialize for WorkflowSpecV0
impl Serialize for WorkflowSpecV0
impl StructuralPartialEq for WorkflowSpecV0
Auto Trait Implementations§
impl Freeze for WorkflowSpecV0
impl RefUnwindSafe for WorkflowSpecV0
impl Send for WorkflowSpecV0
impl Sync for WorkflowSpecV0
impl Unpin for WorkflowSpecV0
impl UnwindSafe for WorkflowSpecV0
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)