pub struct ExpressionDef {
pub id: String,
pub prompt_suffix: String,
}Expand description
One of the 12 canonical expression slots with its prompt modifier.
Fields§
§id: String§prompt_suffix: StringTrait Implementations§
Source§impl Clone for ExpressionDef
impl Clone for ExpressionDef
Source§fn clone(&self) -> ExpressionDef
fn clone(&self) -> ExpressionDef
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 ExpressionDef
impl Debug for ExpressionDef
Source§impl<'de> Deserialize<'de> for ExpressionDef
impl<'de> Deserialize<'de> for ExpressionDef
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 ExpressionDef
impl PartialEq for ExpressionDef
Source§fn eq(&self, other: &ExpressionDef) -> bool
fn eq(&self, other: &ExpressionDef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExpressionDef
impl Serialize for ExpressionDef
impl StructuralPartialEq for ExpressionDef
Auto Trait Implementations§
impl Freeze for ExpressionDef
impl RefUnwindSafe for ExpressionDef
impl Send for ExpressionDef
impl Sync for ExpressionDef
impl Unpin for ExpressionDef
impl UnsafeUnpin for ExpressionDef
impl UnwindSafe for ExpressionDef
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