Skip to main content

RoundInfo

Struct RoundInfo 

Source
#[non_exhaustive]
pub struct RoundInfo<'a> { pub invocation_id: &'a InvocationId, pub model: &'a ModelRef, pub tool_surface: &'a ToolSurface, pub generation: &'a GenerationOptions, }
Expand description

Configuration visible while preparing this invocation’s material.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§invocation_id: &'a InvocationId

The actual logical model invocation being prepared.

§model: &'a ModelRef

The actual model selected by the caller.

§tool_surface: &'a ToolSurface

The bound tools offered for this invocation.

§generation: &'a GenerationOptions

The generation settings selected by the caller.

Implementations§

Source§

impl<'a> RoundInfo<'a>

Source

pub fn new( invocation_id: &'a InvocationId, model: &'a ModelRef, tool_surface: &'a ToolSurface, generation: &'a GenerationOptions, ) -> Self

The facts of the round about to be invoked.

Auto Trait Implementations§

§

impl<'a> Freeze for RoundInfo<'a>

§

impl<'a> RefUnwindSafe for RoundInfo<'a>

§

impl<'a> Send for RoundInfo<'a>

§

impl<'a> Sync for RoundInfo<'a>

§

impl<'a> Unpin for RoundInfo<'a>

§

impl<'a> UnsafeUnpin for RoundInfo<'a>

§

impl<'a> UnwindSafe for RoundInfo<'a>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.