pub struct LobeInspectionRequest {
pub root: PathBuf,
pub allowed_roots: Vec<PathBuf>,
pub max_files: Option<u64>,
pub max_bytes: Option<u64>,
pub max_depth: Option<usize>,
pub include_contents: bool,
pub include_extensions: Vec<String>,
pub exclude_names: Vec<String>,
pub exclude_path_prefixes: Vec<PathBuf>,
pub max_preview_bytes_per_file: Option<u64>,
pub skip_hidden: bool,
}Expand description
Lobe-facing request for bounded runtime-owned inspection.
Fields§
§root: PathBuf§allowed_roots: Vec<PathBuf>§max_files: Option<u64>§max_bytes: Option<u64>§max_depth: Option<usize>§include_contents: bool§include_extensions: Vec<String>§exclude_names: Vec<String>§exclude_path_prefixes: Vec<PathBuf>§max_preview_bytes_per_file: Option<u64>Implementations§
Source§impl LobeInspectionRequest
impl LobeInspectionRequest
pub fn with_allowed_roots( self, roots: impl IntoIterator<Item = PathBuf>, ) -> Self
pub fn with_contents(self, include_contents: bool) -> Self
pub fn with_extensions<I, S>(self, extensions: I) -> Self
pub fn with_excluded_names<I, S>(self, names: I) -> Self
pub fn with_excluded_path_prefixes<I, P>(self, prefixes: I) -> Self
pub fn with_max_preview_bytes_per_file(self, max_bytes: u64) -> Self
pub fn with_max_files(self, max_files: u64) -> Self
pub fn with_max_bytes(self, max_bytes: u64) -> Self
pub fn with_max_depth(self, max_depth: usize) -> Self
Trait Implementations§
Source§impl Clone for LobeInspectionRequest
impl Clone for LobeInspectionRequest
Source§fn clone(&self) -> LobeInspectionRequest
fn clone(&self) -> LobeInspectionRequest
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 moreSource§impl Debug for LobeInspectionRequest
impl Debug for LobeInspectionRequest
Source§impl<'de> Deserialize<'de> for LobeInspectionRequest
impl<'de> Deserialize<'de> for LobeInspectionRequest
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 LobeInspectionRequest
impl RefUnwindSafe for LobeInspectionRequest
impl Send for LobeInspectionRequest
impl Sync for LobeInspectionRequest
impl Unpin for LobeInspectionRequest
impl UnsafeUnpin for LobeInspectionRequest
impl UnwindSafe for LobeInspectionRequest
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