gemini_ai::pulse::pulse

Struct GeminiPulse

Source
pub struct GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> { /* private fields */ }

Implementations§

Source§

impl<'pulse> GeminiPulse<'pulse, EnvVariableNotPresent, ModelNotPresent, TrainNotPresent, InstructionNotPresent, TellNotPresent>

Source

pub fn new() -> Self

Source

pub fn env( self, env_variable: &'pulse str, ) -> GeminiPulse<'pulse, EnvVariablePresent, ModelNotPresent, TrainNotPresent, InstructionNotPresent, TellNotPresent>

Source§

impl<'model> GeminiPulse<'model, EnvVariablePresent, ModelNotPresent, TrainNotPresent, InstructionNotPresent, TellNotPresent>

Source§

impl<'train> GeminiPulse<'train, EnvVariablePresent, ModelPresent, TrainNotPresent, InstructionNotPresent, TellNotPresent>

Source§

impl<'instruction> GeminiPulse<'instruction, EnvVariablePresent, ModelPresent, TrainPresent, InstructionNotPresent, TellNotPresent>

Source

pub fn instruction( self, instruction: &'instruction str, ) -> GeminiPulse<'instruction, EnvVariablePresent, ModelPresent, TrainPresent, InstructionPresent, TellNotPresent>

Source§

impl<'tell> GeminiPulse<'tell, EnvVariablePresent, ModelPresent, TrainPresent, InstructionPresent, TellNotPresent>

Source§

impl<'build> GeminiPulse<'build, EnvVariablePresent, ModelPresent, TrainPresent, InstructionPresent, TellPresent>

Source

pub fn build(&self) -> GeminiPulseBuilder<'build>

Auto Trait Implementations§

§

impl<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> Freeze for GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState>

§

impl<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> RefUnwindSafe for GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState>
where EnvState: RefUnwindSafe, ModelState: RefUnwindSafe, TrainState: RefUnwindSafe, InstructionState: RefUnwindSafe, TellState: RefUnwindSafe,

§

impl<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> Send for GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState>
where EnvState: Send, ModelState: Send, TrainState: Send, InstructionState: Send, TellState: Send,

§

impl<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> Sync for GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState>
where EnvState: Sync, ModelState: Sync, TrainState: Sync, InstructionState: Sync, TellState: Sync,

§

impl<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> Unpin for GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState>
where EnvState: Unpin, ModelState: Unpin, TrainState: Unpin, InstructionState: Unpin, TellState: Unpin,

§

impl<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState> UnwindSafe for GeminiPulse<'gemini, EnvState, ModelState, TrainState, InstructionState, TellState>
where EnvState: UnwindSafe, ModelState: UnwindSafe, TrainState: UnwindSafe, InstructionState: UnwindSafe, TellState: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.