pub struct Choice<'a> {
pub mode: VisionMode,
pub model: &'a str,
pub route: &'a str,
pub profile: &'a str,
pub pictures: usize,
pub turn_sees: bool,
pub describe: Option<Describe>,
pub allow_cloud: bool,
}Expand description
The facts a planner needs, all of which a surface can answer without asking a model anything.
Fields§
§mode: VisionMode§model: &'a strThe turn’s model, named in a refusal so the reader knows which one cannot see.
route: &'a strThe turn’s active route, named in a refusal so the reader knows which route to update.
profile: &'a strThe active route’s wire profile, named in a refusal alongside route.
pictures: usizeHow many pictures are on the turn. Zero means there is nothing to route.
turn_sees: boolWhether the turn’s own provider declares vision.
describe: Option<Describe>The resolved [vision] route, if the config names one.
allow_cloud: bool[vision] allow_cloud: let a description leave this machine.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Choice<'a>
impl<'a> Freeze for Choice<'a>
impl<'a> Move for Choice<'a>
impl<'a> RefUnwindSafe for Choice<'a>
impl<'a> Send for Choice<'a>
impl<'a> Sync for Choice<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Choice<'a>
impl<'a> UnsafeUnpin for Choice<'a>
impl<'a> UnwindSafe for Choice<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more