#[repr(u8)]pub enum FileTypeDTO {
Unknown = 0,
File = 1,
Directory = 2,
SymbolicLink = 64,
}Expand description
Represents the type of a filesystem entry.
This is a C-like enum with an explicit u8 representation. The values are
chosen to align directly with VS Code’s internal FileType enum, ensuring
seamless interoperability across the IPC boundary. It is used as a bitmask
to allow for combinations (e.g., a symbolic link to a directory).
Variants§
Unknown = 0
The file type is unknown.
File = 1
A regular file.
Directory = 2
A directory.
SymbolicLink = 64
A symbolic link.
Trait Implementations§
Source§impl Clone for FileTypeDTO
impl Clone for FileTypeDTO
Source§fn clone(&self) -> FileTypeDTO
fn clone(&self) -> FileTypeDTO
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 FileTypeDTO
impl Debug for FileTypeDTO
Source§impl<'de> Deserialize<'de> for FileTypeDTO
impl<'de> Deserialize<'de> for FileTypeDTO
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 PartialEq for FileTypeDTO
impl PartialEq for FileTypeDTO
Source§impl Serialize for FileTypeDTO
impl Serialize for FileTypeDTO
impl Copy for FileTypeDTO
impl Eq for FileTypeDTO
impl StructuralPartialEq for FileTypeDTO
Auto Trait Implementations§
impl Freeze for FileTypeDTO
impl RefUnwindSafe for FileTypeDTO
impl Send for FileTypeDTO
impl Sync for FileTypeDTO
impl Unpin for FileTypeDTO
impl UnwindSafe for FileTypeDTO
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.