#[non_exhaustive]pub struct CompactEdit {
pub type_: CompactType,
pub instructions: Option<String>,
pub pause_after_compaction: Option<bool>,
pub trigger: Option<InputTokensThreshold>,
pub rest: Rest,
}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.type_: CompactType§instructions: Option<String>§pause_after_compaction: Option<bool>§trigger: Option<InputTokensThreshold>§rest: RestImplementations§
Source§impl CompactEdit
impl CompactEdit
Sourcepub fn builder(type_: CompactType) -> CompactEditBuilder
pub fn builder(type_: CompactType) -> CompactEditBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for CompactEdit
impl Clone for CompactEdit
Source§impl Debug for CompactEdit
impl Debug for CompactEdit
Source§impl DeclaredFields for CompactEdit
impl DeclaredFields for CompactEdit
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for CompactEdit
impl<'de> Deserialize<'de> for CompactEdit
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 CompactEdit
impl PartialEq for CompactEdit
Source§impl Serialize for CompactEdit
impl Serialize for CompactEdit
impl StructuralPartialEq for CompactEdit
Auto Trait Implementations§
impl Freeze for CompactEdit
impl RefUnwindSafe for CompactEdit
impl Send for CompactEdit
impl Sync for CompactEdit
impl Unpin for CompactEdit
impl UnsafeUnpin for CompactEdit
impl UnwindSafe for CompactEdit
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