pub struct PatternDef {
pub id: String,
pub inner: WeaveDef,
pub inputs: Vec<PatternExportDef>,
pub outputs: Vec<PatternExportDef>,
}Expand description
Editable pattern definition; convert with Pattern::try_from.
Fields§
§id: StringPattern catalog id (non-empty, no /).
inner: WeaveDefInner weave expanded under instance_id/ on include.
inputs: Vec<PatternExportDef>Required input ports the parent must wire after include.
outputs: Vec<PatternExportDef>Output ports available as parent thread sources.
Trait Implementations§
Source§impl Clone for PatternDef
impl Clone for PatternDef
Source§fn clone(&self) -> PatternDef
fn clone(&self) -> PatternDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatternDef
impl Debug for PatternDef
Source§impl<'de> Deserialize<'de> for PatternDef
impl<'de> Deserialize<'de> for PatternDef
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<Pattern> for PatternDef
impl From<Pattern> for PatternDef
Source§impl JsonSchema for PatternDef
impl JsonSchema for PatternDef
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PatternDef
impl PartialEq for PatternDef
Source§impl Serialize for PatternDef
impl Serialize for PatternDef
impl StructuralPartialEq for PatternDef
Source§impl TryFrom<PatternDef> for Pattern
impl TryFrom<PatternDef> for Pattern
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PatternDef
impl RefUnwindSafe for PatternDef
impl Send for PatternDef
impl Sync for PatternDef
impl Unpin for PatternDef
impl UnsafeUnpin for PatternDef
impl UnwindSafe for PatternDef
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