pub struct ReadSessionConfig {
pub cwd: String,
pub permissions: PermissionPolicy,
pub model_context_tokens: Option<u64>,
pub tokens_per_byte: Option<f64>,
pub max_file_size: Option<u64>,
pub max_bytes: Option<usize>,
pub default_limit: Option<usize>,
pub max_line_length: Option<usize>,
}Fields§
§cwd: String§permissions: PermissionPolicy§model_context_tokens: Option<u64>§tokens_per_byte: Option<f64>§max_file_size: Option<u64>§max_bytes: Option<usize>§default_limit: Option<usize>§max_line_length: Option<usize>Implementations§
Source§impl ReadSessionConfig
impl ReadSessionConfig
pub fn new(cwd: impl Into<String>, permissions: PermissionPolicy) -> Self
Trait Implementations§
Source§impl Clone for ReadSessionConfig
impl Clone for ReadSessionConfig
Source§fn clone(&self) -> ReadSessionConfig
fn clone(&self) -> ReadSessionConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ReadSessionConfig
impl !RefUnwindSafe for ReadSessionConfig
impl Send for ReadSessionConfig
impl Sync for ReadSessionConfig
impl Unpin for ReadSessionConfig
impl UnsafeUnpin for ReadSessionConfig
impl !UnwindSafe for ReadSessionConfig
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