pub enum StringContext {
FileString {
offset: Option<u64>,
},
Import {
library: String,
},
Export {
symbol: String,
},
Resource {
resource_type: String,
},
Section {
section_name: String,
},
Metadata {
field: String,
},
Path {
path_type: String,
},
Url {
protocol: Option<String>,
},
Registry {
hive: Option<String>,
},
Command {
command_type: String,
},
Other {
category: String,
},
}Expand description
Context in which a string was observed.
Variants§
FileString
String found in file content.
Import
String found in an import table or dependency list.
Export
String found in an export table.
Resource
String found in an embedded resource.
Section
String found in a file section.
Metadata
String found in file metadata.
Path
String representing a file-system path.
Url
String representing a URL.
Registry
String representing a Windows registry key.
Command
String representing a command or script.
Other
Application-defined context.
Trait Implementations§
Source§impl Clone for StringContext
impl Clone for StringContext
Source§fn clone(&self) -> StringContext
fn clone(&self) -> StringContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StringContext
impl Debug for StringContext
Source§impl<'de> Deserialize<'de> for StringContext
impl<'de> Deserialize<'de> for StringContext
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
impl Eq for StringContext
Source§impl Ord for StringContext
impl Ord for StringContext
Source§fn cmp(&self, other: &StringContext) -> Ordering
fn cmp(&self, other: &StringContext) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StringContext
impl PartialEq for StringContext
Source§impl PartialOrd for StringContext
impl PartialOrd for StringContext
Source§impl Serialize for StringContext
impl Serialize for StringContext
impl StructuralPartialEq for StringContext
Auto Trait Implementations§
impl Freeze for StringContext
impl RefUnwindSafe for StringContext
impl Send for StringContext
impl Sync for StringContext
impl Unpin for StringContext
impl UnsafeUnpin for StringContext
impl UnwindSafe for StringContext
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