pub struct UserPreferences {
pub custom_instructions: String,
pub enabled: bool,
pub updated_at: Option<String>,
pub max_chars: i64,
}Expand description
Personal instructions that apply to every conversation this person has, whichever agent answers.
Fields§
§custom_instructions: String§enabled: boolOff keeps the text but stops it reaching any run — the switch people actually want when an instruction misfires.
updated_at: Option<String>§max_chars: i64Server-enforced ceiling for custom_instructions. Sent on every response so a client does
not hard-code it.
Trait Implementations§
Source§impl Clone for UserPreferences
impl Clone for UserPreferences
Source§fn clone(&self) -> UserPreferences
fn clone(&self) -> UserPreferences
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 UserPreferences
impl Debug for UserPreferences
Source§impl Default for UserPreferences
impl Default for UserPreferences
Source§fn default() -> UserPreferences
fn default() -> UserPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserPreferences
impl<'de> Deserialize<'de> for UserPreferences
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 UserPreferences
impl PartialEq for UserPreferences
Source§impl Serialize for UserPreferences
impl Serialize for UserPreferences
impl StructuralPartialEq for UserPreferences
Auto Trait Implementations§
impl Freeze for UserPreferences
impl RefUnwindSafe for UserPreferences
impl Send for UserPreferences
impl Sync for UserPreferences
impl Unpin for UserPreferences
impl UnsafeUnpin for UserPreferences
impl UnwindSafe for UserPreferences
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