pub struct GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> { /* private fields */ }
Implementations§
Source§impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariableNotPresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariableNotPresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
Source§impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariableNotPresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariableNotPresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
pub fn env( self, env_variable: &'gemini str, ) -> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
Source§impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
pub fn model( self, model: Models<'gemini>, ) -> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
Source§impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>
pub fn no_memory( self, ) -> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryNot>
pub fn memory( self, memory: Memorys, ) -> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryOK>
Source§impl<'properties> GeminiContentGenBuilder<'properties, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryNot>
impl<'properties> GeminiContentGenBuilder<'properties, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryNot>
pub fn kind( self, response: Kind<'properties>, ) -> GeminiContentGenBuilder<'properties, EnvVariablePresent, ModelPresent, ConfigPresent, MaxLenNotPresent, TextNotPresent, InstructionNotPresent, PropertiesPresent, MemoryNot>
Source§impl<'instruction> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigPresent, MaxLenNotPresent, TextNotPresent, InstructionNotPresent, PropertiesPresent, MemoryNot>
impl<'instruction> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigPresent, MaxLenNotPresent, TextNotPresent, InstructionNotPresent, PropertiesPresent, MemoryNot>
pub fn instruction( self, instruction: &'instruction str, ) -> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>
Source§impl<'text> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>
impl<'text> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>
pub fn text( self, text: &'text str, ) -> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>
Source§impl<'max_len> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>
impl<'max_len> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>
pub fn max_token( self, max: TokenLen, ) -> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryNot>
Source§impl<'build> GeminiContentGenBuilder<'build, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryNot>
impl<'build> GeminiContentGenBuilder<'build, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryNot>
pub fn build(self) -> GeminiContentGen<'build>
Source§impl<'instruction> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryOK>
impl<'instruction> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryOK>
pub fn instruction( self, instruction: &'instruction str, ) -> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesNotPresent, MemoryOK>
Source§impl<'text> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesNotPresent, MemoryOK>
impl<'text> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesNotPresent, MemoryOK>
pub fn text( self, text: &'text str, ) -> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryOK>
Source§impl<'max_len> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryOK>
impl<'max_len> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryOK>
pub fn max_token( self, max: TokenLen, ) -> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryOK>
Source§impl<'build> GeminiContentGenBuilder<'build, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryOK>
impl<'build> GeminiContentGenBuilder<'build, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryOK>
pub fn build(self) -> GeminiContentGen<'build>
Trait Implementations§
Source§impl<'gemini, EnvState: Debug, ModelState: Debug, ConfigState: Debug, InstructionState: Debug, TextState: Debug, MaxState: Debug, PropertiesState: Debug, MemoryState: Debug> Debug for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
impl<'gemini, EnvState: Debug, ModelState: Debug, ConfigState: Debug, InstructionState: Debug, TextState: Debug, MaxState: Debug, PropertiesState: Debug, MemoryState: Debug> Debug for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
Auto Trait Implementations§
impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> Freeze for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> RefUnwindSafe for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>where
EnvState: RefUnwindSafe,
ModelState: RefUnwindSafe,
ConfigState: RefUnwindSafe,
MaxState: RefUnwindSafe,
InstructionState: RefUnwindSafe,
TextState: RefUnwindSafe,
MemoryState: RefUnwindSafe,
PropertiesState: RefUnwindSafe,
impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> Send for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> Sync for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> Unpin for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> UnwindSafe for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>where
EnvState: UnwindSafe,
ModelState: UnwindSafe,
ConfigState: UnwindSafe,
MaxState: UnwindSafe,
InstructionState: UnwindSafe,
TextState: UnwindSafe,
MemoryState: UnwindSafe,
PropertiesState: UnwindSafe,
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