pub struct NewSample {
pub file_name: String,
pub source_id: u32,
pub file_contents_b64: String,
pub sha256: String,
}
Expand description
New file sample being sent to MalwareDB
Fields§
§file_name: String
The original file name, might not be known
source_id: u32
ID of the source for this sample
file_contents_b64: String
Base64 encoding of the binary file
sha256: String
SHA-256 of the sample being sent, for server-side validation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NewSample
impl<'de> Deserialize<'de> for NewSample
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
Auto Trait Implementations§
impl Freeze for NewSample
impl RefUnwindSafe for NewSample
impl Send for NewSample
impl Sync for NewSample
impl Unpin for NewSample
impl UnwindSafe for NewSample
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