pub struct FsAllowlistConfig {
    pub scope: FsAllowlistScope,
    pub all: bool,
    pub read_file: bool,
    pub write_file: bool,
    pub read_dir: bool,
    pub copy_file: bool,
    pub create_dir: bool,
    pub remove_dir: bool,
    pub remove_file: bool,
    pub rename_file: bool,
    pub exists: bool,
}
Expand description

Allowlist for the file system APIs.

Fields

scope: FsAllowlistScope

The access scope for the filesystem APIs.

all: bool

Use this flag to enable all file system API features.

read_file: bool

Read file from local filesystem.

write_file: bool

Write file to local filesystem.

read_dir: bool

Read directory from local filesystem.

copy_file: bool

Copy file from local filesystem.

create_dir: bool

Create directory from local filesystem.

remove_dir: bool

Remove directory from local filesystem.

remove_file: bool

Remove file from local filesystem.

rename_file: bool

Rename file from local filesystem.

exists: bool

Check if path exists on the local filesystem.

Trait Implementations

Returns all features associated with the allowlist struct.
Returns the tauri features enabled on this allowlist.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.