pub struct SearchRequestParameters {
pub partial_hash: Option<(PartialHashSearchType, String)>,
pub file_name: Option<String>,
pub limit: u32,
pub file_type: Option<String>,
pub magic: Option<String>,
pub labels: Option<Vec<String>>,
pub response: PartialHashSearchType,
}Expand description
Search for a file by some criteria, all of which are an AND operation:
- Partial hash
- Name of the sample
- Type of the sample
- Libmagic description of the sample
- Labels applied to the sample
Fields§
§partial_hash: Option<(PartialHashSearchType, String)>Search for a file by partial hash
file_name: Option<String>Search for a file by whole or partial file name
limit: u32Maximum number of results to return, 100 results or fewer.
file_type: Option<String>Optionally search for samples of a specific file type.
magic: Option<String>Optionally search for samples based on libmagic, also known as the file command.
labels: Option<Vec<String>>Optionally search for samples with specific label(s).
response: PartialHashSearchTypeGet the returned result by a hash type.
PartialHashSearchType::Any results in SHA-256
Implementations§
Trait Implementations§
Source§impl Clone for SearchRequestParameters
impl Clone for SearchRequestParameters
Source§fn clone(&self) -> SearchRequestParameters
fn clone(&self) -> SearchRequestParameters
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 SearchRequestParameters
impl Debug for SearchRequestParameters
Source§impl Default for SearchRequestParameters
This trait implementation is provided as a convenience. This does not create a valid object.
impl Default for SearchRequestParameters
This trait implementation is provided as a convenience. This does not create a valid object.
Source§impl<'de> Deserialize<'de> for SearchRequestParameters
impl<'de> Deserialize<'de> for SearchRequestParameters
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 SearchRequestParameters
impl PartialEq for SearchRequestParameters
Source§impl Serialize for SearchRequestParameters
impl Serialize for SearchRequestParameters
impl Eq for SearchRequestParameters
impl StructuralPartialEq for SearchRequestParameters
Auto Trait Implementations§
impl Freeze for SearchRequestParameters
impl RefUnwindSafe for SearchRequestParameters
impl Send for SearchRequestParameters
impl Sync for SearchRequestParameters
impl Unpin for SearchRequestParameters
impl UnwindSafe for SearchRequestParameters
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