pub struct NewSampleB64 {
pub file_name: String,
pub source_id: u32,
pub file_contents_b64: String,
pub sha256: String,
}Expand description
New file sample being sent to Malware DB via UPLOAD_SAMPLE_JSON_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_b64: StringBase64 encoding of the binary file
sha256: StringSHA-256 of the sample being sent, for server-side validation
Trait Implementations§
Source§impl Clone for NewSampleB64
impl Clone for NewSampleB64
Source§fn clone(&self) -> NewSampleB64
fn clone(&self) -> NewSampleB64
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 NewSampleB64
impl Debug for NewSampleB64
Source§impl<'de> Deserialize<'de> for NewSampleB64
impl<'de> Deserialize<'de> for NewSampleB64
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 NewSampleB64
impl RefUnwindSafe for NewSampleB64
impl Send for NewSampleB64
impl Sync for NewSampleB64
impl Unpin for NewSampleB64
impl UnwindSafe for NewSampleB64
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