Struct deno_config::FilesConfig
source · pub struct FilesConfig {
pub include: Option<Vec<PathBuf>>,
pub exclude: Vec<PathBuf>,
}
Fields§
§include: Option<Vec<PathBuf>>
§exclude: Vec<PathBuf>
Implementations§
source§impl FilesConfig
impl FilesConfig
sourcepub fn matches_specifier(&self, specifier: &Url) -> bool
pub fn matches_specifier(&self, specifier: &Url) -> bool
Gets if the provided specifier is allowed based on the includes and excludes in the configuration file.
Trait Implementations§
source§impl Clone for FilesConfig
impl Clone for FilesConfig
source§fn clone(&self) -> FilesConfig
fn clone(&self) -> FilesConfig
Returns a copy 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 FilesConfig
impl Debug for FilesConfig
source§impl Default for FilesConfig
impl Default for FilesConfig
source§fn default() -> FilesConfig
fn default() -> FilesConfig
Returns the “default value” for a type. Read more
source§impl PartialEq<FilesConfig> for FilesConfig
impl PartialEq<FilesConfig> for FilesConfig
source§fn eq(&self, other: &FilesConfig) -> bool
fn eq(&self, other: &FilesConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FilesConfig
impl StructuralEq for FilesConfig
impl StructuralPartialEq for FilesConfig
Auto Trait Implementations§
impl RefUnwindSafe for FilesConfig
impl Send for FilesConfig
impl Sync for FilesConfig
impl Unpin for FilesConfig
impl UnwindSafe for FilesConfig
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.