#[non_exhaustive]pub struct LocalWorkspaceConfig { /* private fields */ }Expand description
Local filesystem workspace configuration.
Implementations§
Source§impl LocalWorkspaceConfig
impl LocalWorkspaceConfig
Sourcepub fn symlink_policy(&self) -> SymlinkPolicy
pub fn symlink_policy(&self) -> SymlinkPolicy
Symlink behavior.
Sourcepub fn with_symlink_policy(self, symlink_policy: SymlinkPolicy) -> Self
pub fn with_symlink_policy(self, symlink_policy: SymlinkPolicy) -> Self
Returns a config with updated symlink behavior.
Sourcepub fn max_read_bytes(&self) -> usize
pub fn max_read_bytes(&self) -> usize
Default maximum bytes returned by read operations.
Sourcepub fn with_max_read_bytes(self, max_read_bytes: usize) -> Self
pub fn with_max_read_bytes(self, max_read_bytes: usize) -> Self
Returns a config with an updated read byte cap.
Sourcepub fn max_list_entries(&self) -> usize
pub fn max_list_entries(&self) -> usize
Default maximum entries returned by list operations.
Sourcepub fn with_max_list_entries(self, max_list_entries: usize) -> Self
pub fn with_max_list_entries(self, max_list_entries: usize) -> Self
Returns a config with an updated list entry cap.
Whether hidden files are included when a query does not opt in.
Returns a config with updated hidden-file behavior.
Sourcepub fn respect_gitignore_by_default(&self) -> bool
pub fn respect_gitignore_by_default(&self) -> bool
Whether .gitignore patterns are respected when a query does not opt out.
Sourcepub fn with_respect_gitignore_by_default(
self,
respect_gitignore_by_default: bool,
) -> Self
pub fn with_respect_gitignore_by_default( self, respect_gitignore_by_default: bool, ) -> Self
Returns a config with updated .gitignore behavior.
Trait Implementations§
Source§impl Clone for LocalWorkspaceConfig
impl Clone for LocalWorkspaceConfig
Source§impl Debug for LocalWorkspaceConfig
impl Debug for LocalWorkspaceConfig
Source§impl Default for LocalWorkspaceConfig
impl Default for LocalWorkspaceConfig
Source§impl<'de> Deserialize<'de> for LocalWorkspaceConfigwhere
LocalWorkspaceConfig: Default,
impl<'de> Deserialize<'de> for LocalWorkspaceConfigwhere
LocalWorkspaceConfig: Default,
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
impl Eq for LocalWorkspaceConfig
Source§impl PartialEq for LocalWorkspaceConfig
impl PartialEq for LocalWorkspaceConfig
Source§impl Serialize for LocalWorkspaceConfig
impl Serialize for LocalWorkspaceConfig
impl StructuralPartialEq for LocalWorkspaceConfig
Auto Trait Implementations§
impl Freeze for LocalWorkspaceConfig
impl RefUnwindSafe for LocalWorkspaceConfig
impl Send for LocalWorkspaceConfig
impl Sync for LocalWorkspaceConfig
impl Unpin for LocalWorkspaceConfig
impl UnsafeUnpin for LocalWorkspaceConfig
impl UnwindSafe for LocalWorkspaceConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.