gemini_ai

Struct GeminiContentGenBuilder

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

Implementations§

Source§

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

Source

pub fn new() -> Self

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source

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

Trait Implementations§

Source§

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

§

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

§

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

§

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

§

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

§

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