pub enum BeforeUserMessageOutcome {
Proceed {
text: String,
attachments: Vec<Attachment>,
},
Cancelled {
extension_name: String,
reason: Option<String>,
},
}Expand description
Result of dispatching before_user_message through the extension chain.
Variants§
Proceed
All extensions returned continue (or transform_text). The
text field is the final-transformed text (or the original if
no extension transformed). attachments is unchanged from input
— extensions don’t modify attachments in before_user_message.
Cancelled
An extension returned cancel. The turn does not start.
Trait Implementations§
Source§impl Clone for BeforeUserMessageOutcome
impl Clone for BeforeUserMessageOutcome
Source§fn clone(&self) -> BeforeUserMessageOutcome
fn clone(&self) -> BeforeUserMessageOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BeforeUserMessageOutcome
impl Debug for BeforeUserMessageOutcome
Source§impl PartialEq for BeforeUserMessageOutcome
impl PartialEq for BeforeUserMessageOutcome
Source§fn eq(&self, other: &BeforeUserMessageOutcome) -> bool
fn eq(&self, other: &BeforeUserMessageOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BeforeUserMessageOutcome
impl StructuralPartialEq for BeforeUserMessageOutcome
Auto Trait Implementations§
impl Freeze for BeforeUserMessageOutcome
impl RefUnwindSafe for BeforeUserMessageOutcome
impl Send for BeforeUserMessageOutcome
impl Sync for BeforeUserMessageOutcome
impl Unpin for BeforeUserMessageOutcome
impl UnsafeUnpin for BeforeUserMessageOutcome
impl UnwindSafe for BeforeUserMessageOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.