pub struct ConversationSpec {
pub name: String,
pub stages: Vec<StageSpec>,
pub require: Vec<String>,
pub overlays: Vec<OverlaySpec>,
pub policies: Vec<Policy>,
}Expand description
The serializable authoring spec — the single source of truth from which the typed builder, YAML, and (later) codegen all derive.
Fields§
§name: StringConversation name.
stages: Vec<StageSpec>The authored stages.
require: Vec<String>Stages that must be done for the conversation to be complete.
overlays: Vec<OverlaySpec>Digressions/overlays that can suspend and resume the main flow.
policies: Vec<Policy>Cross-cutting policy aspects (safety/redaction/commit governance).
Trait Implementations§
Source§impl Clone for ConversationSpec
impl Clone for ConversationSpec
Source§fn clone(&self) -> ConversationSpec
fn clone(&self) -> ConversationSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 ConversationSpec
impl Debug for ConversationSpec
Source§impl Default for ConversationSpec
impl Default for ConversationSpec
Source§fn default() -> ConversationSpec
fn default() -> ConversationSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationSpec
impl<'de> Deserialize<'de> for ConversationSpec
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 ConversationSpec
impl !RefUnwindSafe for ConversationSpec
impl Send for ConversationSpec
impl Sync for ConversationSpec
impl Unpin for ConversationSpec
impl !UnwindSafe for ConversationSpec
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