pub struct MapNode {
pub id: String,
pub name: Option<String>,
pub over: String,
pub concurrency: u32,
pub body: MapBody,
pub output_schema: Option<Value>,
}Expand description
A map node: fan-out a sub-run per element of a typed list, with a
concurrency cap.
Fields§
§id: StringThe node’s stable id, unique within the document.
name: Option<String>Optional short display label for this node. See the module docs’ “The
optional node display name” section for the bound and the deliberate
hash-inclusion contrast with the agent name field. Additive: absent
on the wire when unset.
over: StringOpaque reference to the typed list this node fans out over. Data only, not resolved in this crate.
concurrency: u32The maximum number of sub-runs in flight at once. Must be at least 1;
[crate::validate] reports a non-positive cap by node id.
body: MapBodyWhat each element is mapped through: a node already in this document, or an embedded sub-graph.
output_schema: Option<Value>Optional JSON Schema for the joined list this node produces.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapNode
impl<'de> Deserialize<'de> for MapNode
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 JsonSchema for MapNode
impl JsonSchema for MapNode
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for MapNode
Auto Trait Implementations§
impl Freeze for MapNode
impl RefUnwindSafe for MapNode
impl Send for MapNode
impl Sync for MapNode
impl Unpin for MapNode
impl UnsafeUnpin for MapNode
impl UnwindSafe for MapNode
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