pub struct BlockStartMessage {
pub contents: Option<Vec<ToolMessageStartContentsInner>>,
pub conditions: Option<Vec<BlockStartMessageConditionsInner>>,
pub type: Type,
pub content: Option<String>,
}Fields§
§contents: Option<Vec<ToolMessageStartContentsInner>>This is an alternative to the content property. It allows to specify variants of the same content, one per language. Usage: - If your assistants are multilingual, you can provide content for each language. - If you don’t provide content for a language, the first item in the array will be automatically translated to the active language at that moment. This will override the content property.
conditions: Option<Vec<BlockStartMessageConditionsInner>>This is an optional array of conditions that must be met for this message to be triggered.
type: TypeThis is the message type that is triggered when the block starts.
content: Option<String>This is the content that the assistant will say when this message is triggered.
Implementations§
Source§impl BlockStartMessage
impl BlockStartMessage
pub fn new(type: Type) -> BlockStartMessage
Trait Implementations§
Source§impl Clone for BlockStartMessage
impl Clone for BlockStartMessage
Source§fn clone(&self) -> BlockStartMessage
fn clone(&self) -> BlockStartMessage
Returns a copy 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 ComposeSchema for BlockStartMessage
impl ComposeSchema for BlockStartMessage
Source§impl Debug for BlockStartMessage
impl Debug for BlockStartMessage
Source§impl Default for BlockStartMessage
impl Default for BlockStartMessage
Source§fn default() -> BlockStartMessage
fn default() -> BlockStartMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockStartMessage
impl<'de> Deserialize<'de> for BlockStartMessage
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 PartialEq for BlockStartMessage
impl PartialEq for BlockStartMessage
Source§impl Serialize for BlockStartMessage
impl Serialize for BlockStartMessage
Source§impl ToSchema for BlockStartMessage
impl ToSchema for BlockStartMessage
impl StructuralPartialEq for BlockStartMessage
Auto Trait Implementations§
impl Freeze for BlockStartMessage
impl RefUnwindSafe for BlockStartMessage
impl Send for BlockStartMessage
impl Sync for BlockStartMessage
impl Unpin for BlockStartMessage
impl UnwindSafe for BlockStartMessage
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