#[non_exhaustive]pub struct ProfileChange {
pub enabled: Option<bool>,
pub model: Option<String>,
pub escalate_to: Option<String>,
pub max_output_tokens: Option<u32>,
pub reasoning_effort: Option<ReasoningEffort>,
pub timeout_secs: Option<u64>,
pub votes: Option<u8>,
pub on_disagreement: Option<Disagreement>,
pub repairs: Option<u8>,
pub retries: Option<u8>,
pub review: Option<bool>,
}Expand description
The fields of a TaskProfile to change; a field left out keeps its value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: Option<bool>§model: Option<String>§escalate_to: Option<String>§max_output_tokens: Option<u32>§reasoning_effort: Option<ReasoningEffort>§timeout_secs: Option<u64>§votes: Option<u8>§on_disagreement: Option<Disagreement>§repairs: Option<u8>§retries: Option<u8>§review: Option<bool>Implementations§
Source§impl ProfileChange
impl ProfileChange
Sourcepub fn apply(&self, profile: TaskProfile) -> TaskProfile
pub fn apply(&self, profile: TaskProfile) -> TaskProfile
profile with every field this change names.
Trait Implementations§
Source§impl Clone for ProfileChange
impl Clone for ProfileChange
Source§impl Debug for ProfileChange
impl Debug for ProfileChange
Source§impl Default for ProfileChange
impl Default for ProfileChange
Source§impl<'de> Deserialize<'de> for ProfileChangewhere
ProfileChange: Default,
impl<'de> Deserialize<'de> for ProfileChangewhere
ProfileChange: 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
Source§impl PartialEq for ProfileChange
impl PartialEq for ProfileChange
Source§impl Serialize for ProfileChange
impl Serialize for ProfileChange
impl StructuralPartialEq for ProfileChange
Auto Trait Implementations§
impl Freeze for ProfileChange
impl RefUnwindSafe for ProfileChange
impl Send for ProfileChange
impl Sync for ProfileChange
impl Unpin for ProfileChange
impl UnsafeUnpin for ProfileChange
impl UnwindSafe for ProfileChange
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