pub struct FolderScope {
pub source_id: String,
pub limit_path: Option<String>,
pub include_subfolders: bool,
}Expand description
One folder restriction: a registered source, optionally a subfolder of it, and whether nested folders count.
Fields§
§source_id: String§limit_path: Option<String>Task 113: the canonical path of a folder inside the source, when
the search is limited to that subfolder. None searches the source
itself. A file is inside when this is a path-component prefix of its
path (orbok_core::folder_cover); “folder only” is then counted from
this folder, not from the source.
include_subfolders: boolfalse restricts to files sitting directly in the folder (the
source, or limit_path when it is set; RFC-045 §6.3’s “folder only”).
Trait Implementations§
Source§impl Clone for FolderScope
impl Clone for FolderScope
Source§impl Debug for FolderScope
impl Debug for FolderScope
impl Eq for FolderScope
Source§impl PartialEq for FolderScope
impl PartialEq for FolderScope
impl StructuralPartialEq for FolderScope
Auto Trait Implementations§
impl Freeze for FolderScope
impl RefUnwindSafe for FolderScope
impl Send for FolderScope
impl Sync for FolderScope
impl Unpin for FolderScope
impl UnsafeUnpin for FolderScope
impl UnwindSafe for FolderScope
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