pub struct GateNode {
pub id: String,
pub name: Option<String>,
pub prompt: Option<String>,
pub approval_schema: Value,
}Expand description
A gate node: human approval that suspends the run.
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.
prompt: Option<String>Optional human-readable prompt shown in the approval inbox.
approval_schema: ValueJSON Schema the human approval input must satisfy, mirroring the recorded
Suspended event’s input_schema. Required: a gate with no declared
approval shape is meaningless.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GateNode
impl<'de> Deserialize<'de> for GateNode
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 GateNode
impl JsonSchema for GateNode
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 GateNode
Auto Trait Implementations§
impl Freeze for GateNode
impl RefUnwindSafe for GateNode
impl Send for GateNode
impl Sync for GateNode
impl Unpin for GateNode
impl UnsafeUnpin for GateNode
impl UnwindSafe for GateNode
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