pub struct PortDef {
pub name: String,
pub direction: String,
pub type_sig: String,
}Expand description
A serialisable description of a single port in a template.
Fields§
§name: StringPort name.
direction: String"input" or "output".
type_sig: StringHuman-readable type signature string (e.g. "Any", "Int", "Bool").
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortDef
impl<'de> Deserialize<'de> for PortDef
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
Auto Trait Implementations§
impl Freeze for PortDef
impl RefUnwindSafe for PortDef
impl Send for PortDef
impl Sync for PortDef
impl Unpin for PortDef
impl UnsafeUnpin for PortDef
impl UnwindSafe for PortDef
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