#[non_exhaustive]pub struct RefineAiOptions {
pub instructions: Option<String>,
}Expand description
Options for refine_markdown.
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.instructions: Option<String>Extra guidance appended to the system prompt (e.g. domain-specific terminology to preserve). Empty by default.
Implementations§
Source§impl RefineAiOptions
impl RefineAiOptions
Sourcepub fn with_instructions(self, instructions: impl Into<String>) -> Self
pub fn with_instructions(self, instructions: impl Into<String>) -> Self
Sets Self::instructions — #[non_exhaustive] blocks struct-literal
construction from outside this crate, so this is how a caller sets it.
Trait Implementations§
Source§impl Clone for RefineAiOptions
impl Clone for RefineAiOptions
Source§impl Debug for RefineAiOptions
impl Debug for RefineAiOptions
Auto Trait Implementations§
impl Freeze for RefineAiOptions
impl RefUnwindSafe for RefineAiOptions
impl Send for RefineAiOptions
impl Sync for RefineAiOptions
impl Unpin for RefineAiOptions
impl UnsafeUnpin for RefineAiOptions
impl UnwindSafe for RefineAiOptions
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