pub enum Subject {
Command(String),
File {
path: String,
volume_serial: Option<u32>,
},
Folder {
path: String,
volume_serial: Option<u32>,
},
Device {
id: String,
volume_serial: Option<u32>,
},
Query(String),
}Expand description
The thing an Action was performed on.
Variants§
Command(String)
A shell command or program invocation.
File
A file path, carrying the volume serial of the volume it lives on when
the source knows it (LNK VolumeID). The serial is the join key to a
Subject::Device with the same volume serial (see
device_file_volume_joins).
Fields
Folder
A folder path, carrying the volume serial of the volume it lives on when the source knows it (shellbag / LNK directory target).
Fields
Device
An external device, with its volume serial kept distinct so an LNK /
shellbag Subject::File carrying the same NTFS/FAT volume serial can be
joined to it (see device_file_volume_joins).
Fields
Query(String)
A search / lookup query.
Implementations§
Trait Implementations§
impl Eq for Subject
impl StructuralPartialEq for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnsafeUnpin for Subject
impl UnwindSafe for Subject
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