pub struct ClaudePrintRequest { /* private fields */ }Implementations§
Source§impl ClaudePrintRequest
impl ClaudePrintRequest
pub fn new(prompt: impl Into<String>) -> Self
pub fn no_prompt(self) -> Self
pub fn output_format(self, format: ClaudeOutputFormat) -> Self
pub fn input_format(self, format: ClaudeInputFormat) -> Self
pub fn json_schema(self, schema: impl Into<String>) -> Self
pub fn model(self, model: impl Into<String>) -> Self
pub fn allowed_tools( self, tools: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn disallowed_tools( self, tools: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn permission_mode(self, mode: impl Into<String>) -> Self
pub fn dangerously_skip_permissions(self, enabled: bool) -> Self
pub fn add_dirs(self, dirs: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn mcp_config(self, config: impl Into<String>) -> Self
pub fn strict_mcp_config(self, enabled: bool) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn agents(self, json: impl Into<String>) -> Self
pub fn allow_dangerously_skip_permissions(self, enabled: bool) -> Self
pub fn append_system_prompt(self, prompt: impl Into<String>) -> Self
pub fn betas(self, betas: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn chrome(self) -> Self
pub fn no_chrome(self) -> Self
pub fn continue_session(self, enabled: bool) -> Self
pub fn debug(self, enabled: bool) -> Self
pub fn debug_file(self, path: impl Into<String>) -> Self
pub fn disable_slash_commands(self, enabled: bool) -> Self
pub fn fallback_model(self, model: impl Into<String>) -> Self
pub fn files(self, specs: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn fork_session(self, enabled: bool) -> Self
pub fn from_pr(self, enabled: bool) -> Self
pub fn from_pr_value(self, value: impl Into<String>) -> Self
pub fn ide(self, enabled: bool) -> Self
pub fn include_partial_messages(self, enabled: bool) -> Self
pub fn max_budget_usd(self, amount: f64) -> Self
pub fn mcp_debug(self, enabled: bool) -> Self
pub fn no_session_persistence(self, enabled: bool) -> Self
pub fn plugin_dirs( self, paths: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn replay_user_messages(self, enabled: bool) -> Self
pub fn resume(self, enabled: bool) -> Self
pub fn resume_value(self, value: impl Into<String>) -> Self
pub fn session_id(self, id: impl Into<String>) -> Self
pub fn setting_sources(self, sources: impl Into<String>) -> Self
pub fn settings(self, file_or_json: impl Into<String>) -> Self
pub fn system_prompt(self, prompt: impl Into<String>) -> Self
pub fn tools(self, tools: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn verbose(self, enabled: bool) -> Self
pub fn stdin_bytes(self, bytes: Vec<u8>) -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn extra_args( self, args: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn argv(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for ClaudePrintRequest
impl Clone for ClaudePrintRequest
Source§fn clone(&self) -> ClaudePrintRequest
fn clone(&self) -> ClaudePrintRequest
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 ClaudePrintRequest
impl RefUnwindSafe for ClaudePrintRequest
impl Send for ClaudePrintRequest
impl Sync for ClaudePrintRequest
impl Unpin for ClaudePrintRequest
impl UnsafeUnpin for ClaudePrintRequest
impl UnwindSafe for ClaudePrintRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.