pub struct WebServiceConfig {
pub port: u16,
pub host: String,
pub repo_path: PathBuf,
pub token_budget: usize,
pub auto_open_browser: bool,
pub max_file_size: usize,
pub auto_exclude_tests: bool,
pub auto_shutdown: bool,
pub auto_shutdown_timeout: u64,
}Expand description
Configuration for the web service
Fields§
§port: u16Port to bind to
host: StringHost to bind to
repo_path: PathBufRepository path to analyze
token_budget: usizeToken budget for selection
auto_open_browser: boolWhether to auto-open browser
max_file_size: usizeMaximum file size to consider
auto_exclude_tests: boolWhether to exclude tests automatically
auto_shutdown: boolWhether to auto-shutdown after inactivity (default true)
auto_shutdown_timeout: u64Auto-shutdown timeout in seconds (default 60)
Trait Implementations§
Source§impl Clone for WebServiceConfig
impl Clone for WebServiceConfig
Source§fn clone(&self) -> WebServiceConfig
fn clone(&self) -> WebServiceConfig
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 moreSource§impl Debug for WebServiceConfig
impl Debug for WebServiceConfig
Source§impl Default for WebServiceConfig
impl Default for WebServiceConfig
Source§impl<'de> Deserialize<'de> for WebServiceConfig
impl<'de> Deserialize<'de> for WebServiceConfig
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
Auto Trait Implementations§
impl Freeze for WebServiceConfig
impl RefUnwindSafe for WebServiceConfig
impl Send for WebServiceConfig
impl Sync for WebServiceConfig
impl Unpin for WebServiceConfig
impl UnwindSafe for WebServiceConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more