pub struct SessionCommand {
pub completion: CompletionOptions,
pub model: Option<Model>,
pub model_focus: Option<ModelFocus>,
pub prompt: Option<String>,
pub prompt_path: Option<String>,
pub provider: Option<Provider>,
}
Fields§
§completion: CompletionOptions
§model: Option<Model>
Model size
model_focus: Option<ModelFocus>
Model focus
prompt: Option<String>
Prompt
prompt_path: Option<String>
Prompt path
provider: Option<Provider>
Provider
Implementations§
Source§impl SessionCommand
impl SessionCommand
pub fn run<'life0, 'life1, 'life_self, 'async_recursion>(
&'life_self self,
client: &'life0 Client,
config: &'life1 Config,
) -> Pin<Box<dyn Future<Output = SessionResult> + Send + 'async_recursion>>where
'life0: 'async_recursion,
'life1: 'async_recursion,
'life_self: 'async_recursion,
pub fn parse_no_context_option(&self) -> bool
pub fn parse_prompt_option(&self) -> String
Trait Implementations§
Source§impl Args for SessionCommand
impl Args for SessionCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for SessionCommand
impl Clone for SessionCommand
Source§fn clone(&self) -> SessionCommand
fn clone(&self) -> SessionCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionCommand
impl Debug for SessionCommand
Source§impl Default for SessionCommand
impl Default for SessionCommand
Source§fn default() -> SessionCommand
fn default() -> SessionCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionCommand
impl<'de> Deserialize<'de> for SessionCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for SessionCommand
impl FromArgMatches for SessionCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for SessionCommand
impl RefUnwindSafe for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnwindSafe for SessionCommand
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