pub struct ValueSpecification {
pub annotations: Annotations,
pub inputs: IndexMap<String, Type>,
pub output: Type,
}Expand description
Value specification (just the signature)
{ "inputs": { "a": "morphir/SDK:basics#int" }, "output": "morphir/SDK:basics#int" }. The
inputs are an object keyed by parameter name, whose order is the parameter order; an array of
[name, type] pairs is accepted beside it. inputTypes and outputType belong to a value
definition’s bodies, not here.
Fields§
§annotations: AnnotationsThe annotations on the value’s public face, written first and only when non-empty (definitions-0021).
inputs: IndexMap<String, Type>§output: TypeTrait Implementations§
Source§impl Clone for ValueSpecification
impl Clone for ValueSpecification
Source§impl Debug for ValueSpecification
impl Debug for ValueSpecification
Source§impl<'de> Deserialize<'de> for ValueSpecification
impl<'de> Deserialize<'de> for ValueSpecification
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 LinkedMetadataCarrier for ValueSpecification
impl LinkedMetadataCarrier for ValueSpecification
fn contains_linked_metadata(&self) -> bool
Source§impl PartialEq for ValueSpecification
impl PartialEq for ValueSpecification
Source§impl Serialize for ValueSpecification
impl Serialize for ValueSpecification
impl StructuralPartialEq for ValueSpecification
Auto Trait Implementations§
impl Freeze for ValueSpecification
impl RefUnwindSafe for ValueSpecification
impl Send for ValueSpecification
impl Sync for ValueSpecification
impl Unpin for ValueSpecification
impl UnsafeUnpin for ValueSpecification
impl UnwindSafe for ValueSpecification
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