pub struct AgentActivityPromptContent {
pub type: Option<AgentActivityType>,
pub body: Option<String>,
pub body_data: Option<Value>,
}Expand description
Content for a prompt activity.
Fields§
§type: Option<AgentActivityType>The type of activity.
body: Option<String>A message requesting additional information or action from user.
body_data: Option<Value>Internal The prompt content as ProseMirror document.
Trait Implementations§
Source§impl Clone for AgentActivityPromptContent
impl Clone for AgentActivityPromptContent
Source§fn clone(&self) -> AgentActivityPromptContent
fn clone(&self) -> AgentActivityPromptContent
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 AgentActivityPromptContent
impl Debug for AgentActivityPromptContent
Source§impl Default for AgentActivityPromptContent
impl Default for AgentActivityPromptContent
Source§fn default() -> AgentActivityPromptContent
fn default() -> AgentActivityPromptContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentActivityPromptContentwhere
AgentActivityPromptContent: Default,
impl<'de> Deserialize<'de> for AgentActivityPromptContentwhere
AgentActivityPromptContent: Default,
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 AgentActivityPromptContent
impl RefUnwindSafe for AgentActivityPromptContent
impl Send for AgentActivityPromptContent
impl Sync for AgentActivityPromptContent
impl Unpin for AgentActivityPromptContent
impl UnwindSafe for AgentActivityPromptContent
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