pub struct GlobArgs {
pub pattern: String,
pub path: Option<String>,
pub limit: Option<usize>,
pub kind: Option<GlobKind>,
pub exclude: Vec<String>,
}Fields§
§pattern: StringGlob pattern to match. Supports *, **, ?, and character classes.
path: Option<String>Optional directory root to search under. Defaults to ".".
limit: Option<usize>Optional maximum number of returned paths. Defaults to 50.
kind: Option<GlobKind>Optional match kind. Defaults to files.
exclude: Vec<String>Optional exclude patterns. Defaults to an empty list.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlobArgs
impl<'de> Deserialize<'de> for GlobArgs
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 GlobArgs
impl JsonSchema for GlobArgs
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 GlobArgs
impl RefUnwindSafe for GlobArgs
impl Send for GlobArgs
impl Sync for GlobArgs
impl Unpin for GlobArgs
impl UnsafeUnpin for GlobArgs
impl UnwindSafe for GlobArgs
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