pub struct EmmyrcWorkspace {
pub ignore_dir: Vec<String>,
pub ignore_globs: Vec<String>,
pub library: Vec<EmmyLibraryItem>,
pub package_dirs: Vec<String>,
pub workspace_roots: Vec<String>,
pub preload_file_size: i32,
pub encoding: String,
pub module_map: Vec<EmmyrcWorkspaceModuleMap>,
pub reindex_duration: u64,
pub enable_reindex: bool,
}Fields§
§ignore_dir: Vec<String>Ignore directories.
ignore_globs: Vec<String>Ignore globs. eg: [“**/*.lua”]
library: Vec<EmmyLibraryItem>Library paths. Can be a string path or an object with path and ignore rules. eg: [“/usr/local/share/lua/5.1”] or [{“path”: “/usr/local/share/lua/5.1”, “ignoreDir”: [“test”], “ignoreGlobs”: [“**/*.spec.lua”]}]
package_dirs: Vec<String>Package directories. Treat the parent directory as a library, but only add files from the specified directory.
eg: /usr/local/share/lua/5.1/module
workspace_roots: Vec<String>Workspace roots. eg: [“src”, “test”]
preload_file_size: i32§encoding: StringEncoding. eg: “utf-8”
module_map: Vec<EmmyrcWorkspaceModuleMap>Module map. key is regex, value is new module regex eg: { “^(.)$”: “module_$1” “^lib(.)$”: “script$1” }
reindex_duration: u64Delay between changing a file and full project reindex, in milliseconds.
enable_reindex: boolEnable full project reindex after changing a file.
Trait Implementations§
Source§impl Clone for EmmyrcWorkspace
impl Clone for EmmyrcWorkspace
Source§fn clone(&self) -> EmmyrcWorkspace
fn clone(&self) -> EmmyrcWorkspace
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 EmmyrcWorkspace
impl Debug for EmmyrcWorkspace
Source§impl Default for EmmyrcWorkspace
impl Default for EmmyrcWorkspace
Source§impl<'de> Deserialize<'de> for EmmyrcWorkspace
impl<'de> Deserialize<'de> for EmmyrcWorkspace
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
Source§impl JsonSchema for EmmyrcWorkspace
impl JsonSchema for EmmyrcWorkspace
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for EmmyrcWorkspace
impl RefUnwindSafe for EmmyrcWorkspace
impl Send for EmmyrcWorkspace
impl Sync for EmmyrcWorkspace
impl Unpin for EmmyrcWorkspace
impl UnsafeUnpin for EmmyrcWorkspace
impl UnwindSafe for EmmyrcWorkspace
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> 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