pub struct SelectionContext { /* private fields */ }Implementations§
Source§impl SelectionContext
impl SelectionContext
pub fn new( model: QualifiedModelId, family: Option<ModelFamilyId>, ) -> Result<Self, PromptError>
pub fn with_workflow_mode(self, mode: Option<WorkflowMode>) -> Self
pub fn workflow_mode(&self) -> Option<WorkflowMode>
pub fn model(&self) -> &QualifiedModelId
pub fn family(&self) -> Option<&ModelFamilyId>
Trait Implementations§
Source§impl Clone for SelectionContext
impl Clone for SelectionContext
Source§fn clone(&self) -> SelectionContext
fn clone(&self) -> SelectionContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectionContext
impl RefUnwindSafe for SelectionContext
impl Send for SelectionContext
impl Sync for SelectionContext
impl Unpin for SelectionContext
impl UnsafeUnpin for SelectionContext
impl UnwindSafe for SelectionContext
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