gemini_ai

Struct GeminiContentGenBuilder

Source
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>

Source

pub fn new() -> Self

Source§

impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariableNotPresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>

Source§

impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelNotPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>

Source§

impl<'gemini> GeminiContentGenBuilder<'gemini, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, Default>

Source§

impl<'properties> GeminiContentGenBuilder<'properties, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryNot>

Source§

impl<'instruction> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigPresent, MaxLenNotPresent, TextNotPresent, InstructionNotPresent, PropertiesPresent, MemoryNot>

Source§

impl<'text> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>

Source§

impl<'max_len> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryNot>

Source§

impl<'build> GeminiContentGenBuilder<'build, EnvVariablePresent, ModelPresent, ConfigPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryNot>

Source

pub fn build(self) -> GeminiContentGen<'build>

Source§

impl<'instruction> GeminiContentGenBuilder<'instruction, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionNotPresent, PropertiesNotPresent, MemoryOK>

Source§

impl<'text> GeminiContentGenBuilder<'text, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextNotPresent, MaxLenNotPresent, InstructionPresent, PropertiesNotPresent, MemoryOK>

Source§

impl<'max_len> GeminiContentGenBuilder<'max_len, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenNotPresent, InstructionPresent, PropertiesPresent, MemoryOK>

Source§

impl<'build> GeminiContentGenBuilder<'build, EnvVariablePresent, ModelPresent, ConfigNotPresent, TextPresent, MaxLenPresent, InstructionPresent, PropertiesPresent, MemoryOK>

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>
where EnvState: Send, ModelState: Send, ConfigState: Send, MaxState: Send, InstructionState: Send, TextState: Send, MemoryState: Send, PropertiesState: Send,

§

impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> Sync for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
where EnvState: Sync, ModelState: Sync, ConfigState: Sync, MaxState: Sync, InstructionState: Sync, TextState: Sync, MemoryState: Sync, PropertiesState: Sync,

§

impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState> Unpin for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState, MemoryState>
where EnvState: Unpin, ModelState: Unpin, ConfigState: Unpin, MaxState: Unpin, InstructionState: Unpin, TextState: Unpin, MemoryState: Unpin, PropertiesState: Unpin,

§

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> 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.