gemini_ai

Struct GeminiContentGenBuilder

Source
pub struct GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState> { /* private fields */ }

Implementations§

Source§

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

Source

pub fn new() -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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> Debug for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState>

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> Freeze for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState>

§

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

§

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

§

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

§

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

§

impl<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState> UnwindSafe for GeminiContentGenBuilder<'gemini, EnvState, ModelState, ConfigState, InstructionState, TextState, MaxState, PropertiesState>
where EnvState: UnwindSafe, ModelState: UnwindSafe, ConfigState: UnwindSafe, MaxState: UnwindSafe, InstructionState: UnwindSafe, TextState: 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.