pub struct SummaryOptions {
pub summary_type: Option<SummaryType>,
pub engine: Option<Engine>,
pub target_language: Option<Language>,
pub cache: Option<bool>,
}
Expand description
Several options are provided to control the output the summarizer produces.
- Summary Types
- Summarization Engines
- Target Language Codes
- Cache
Fields§
§summary_type: Option<SummaryType>
Different summary types are provided that control the structure of the summary output.
engine: Option<Engine>
Different summarization engines give you choices over the “flavor” of the summary.
target_language: Option<Language>
The summarizer can translate the output into a desired language
cache: Option<bool>
Whether to allow cached requests & responses. (default is true)
Trait Implementations§
Source§impl Debug for SummaryOptions
impl Debug for SummaryOptions
Source§impl Default for SummaryOptions
impl Default for SummaryOptions
Source§fn default() -> SummaryOptions
fn default() -> SummaryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SummaryOptions
impl RefUnwindSafe for SummaryOptions
impl Send for SummaryOptions
impl Sync for SummaryOptions
impl Unpin for SummaryOptions
impl UnwindSafe for SummaryOptions
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