pub struct CaptionOptions {
pub prompt: Option<String>,
pub max_caption_length: usize,
pub max_retries: u32,
}Expand description
Caption configuration for controlling caption generation.
Fields§
§prompt: Option<String>Custom prompt (overrides default)
max_caption_length: usizeMaximum caption length in characters. Captions beyond this are truncated at the last word boundary. Default: 500.
max_retries: u32Maximum number of retries on transient failures. Default: 2.
Trait Implementations§
Source§impl Clone for CaptionOptions
impl Clone for CaptionOptions
Source§fn clone(&self) -> CaptionOptions
fn clone(&self) -> CaptionOptions
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 CaptionOptions
impl Debug for CaptionOptions
Auto Trait Implementations§
impl Freeze for CaptionOptions
impl RefUnwindSafe for CaptionOptions
impl Send for CaptionOptions
impl Sync for CaptionOptions
impl Unpin for CaptionOptions
impl UnsafeUnpin for CaptionOptions
impl UnwindSafe for CaptionOptions
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