pub struct NewSampleBytes {
pub file_name: String,
pub source_id: u32,
pub file_contents: Vec<u8>,
pub sha256: String,
}Expand description
New file sample being sent to Malware DB via UPLOAD_SAMPLE_CBOR_URL
Fields§
§file_name: StringThe original file name, which might not be known. If it’s not known, use a hash or something like “unknown.bin”.
source_id: u32ID of the source for this sample
file_contents: Vec<u8>Raw binary contents
sha256: StringSHA-256 of the sample being sent, for server-side validation
Trait Implementations§
Source§impl Clone for NewSampleBytes
impl Clone for NewSampleBytes
Source§fn clone(&self) -> NewSampleBytes
fn clone(&self) -> NewSampleBytes
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 NewSampleBytes
impl Debug for NewSampleBytes
Source§impl<'de> Deserialize<'de> for NewSampleBytes
impl<'de> Deserialize<'de> for NewSampleBytes
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 NewSampleBytes
impl RefUnwindSafe for NewSampleBytes
impl Send for NewSampleBytes
impl Sync for NewSampleBytes
impl Unpin for NewSampleBytes
impl UnwindSafe for NewSampleBytes
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