#[non_exhaustive]pub struct CustomPromptConfig {
pub custom_prompt: String,
/* private fields */
}Expand description
Configuration to enable custom prompt in chirp3.
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.custom_prompt: StringOptional. The custom instructions to override the existing instructions for chirp3.
Implementations§
Source§impl CustomPromptConfig
impl CustomPromptConfig
pub fn new() -> Self
Sourcepub fn set_custom_prompt<T: Into<String>>(self, v: T) -> Self
pub fn set_custom_prompt<T: Into<String>>(self, v: T) -> Self
Sets the value of custom_prompt.
§Example
ⓘ
let x = CustomPromptConfig::new().set_custom_prompt("example");Trait Implementations§
Source§impl Clone for CustomPromptConfig
impl Clone for CustomPromptConfig
Source§fn clone(&self) -> CustomPromptConfig
fn clone(&self) -> CustomPromptConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomPromptConfig
impl Debug for CustomPromptConfig
Source§impl Default for CustomPromptConfig
impl Default for CustomPromptConfig
Source§fn default() -> CustomPromptConfig
fn default() -> CustomPromptConfig
Returns the “default value” for a type. Read more
Source§impl Message for CustomPromptConfig
impl Message for CustomPromptConfig
Source§impl PartialEq for CustomPromptConfig
impl PartialEq for CustomPromptConfig
impl StructuralPartialEq for CustomPromptConfig
Auto Trait Implementations§
impl Freeze for CustomPromptConfig
impl RefUnwindSafe for CustomPromptConfig
impl Send for CustomPromptConfig
impl Sync for CustomPromptConfig
impl Unpin for CustomPromptConfig
impl UnwindSafe for CustomPromptConfig
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