Skip to main content

SingleFileSource

Struct SingleFileSource 

Source
pub struct SingleFileSource {
Show 19 fields pub identifier: Option<i32>, pub name: Option<String>, pub evidence_number: Option<String>, pub location: Option<String>, pub device_guid: Option<String>, pub primary_device_guid: Option<String>, pub drive_type: Option<char>, pub manufacturer: Option<String>, pub model: Option<String>, pub serial_number: Option<String>, pub domain: Option<String>, pub ip_address: Option<String>, pub mac_address: Option<String>, pub size: Option<u64>, pub logical_offset: Option<i64>, pub physical_offset: Option<i64>, pub acquisition_time: Option<i64>, pub md5: Option<String>, pub sha1: Option<String>,
}
Expand description

Source record for logical single-file metadata.

Fields§

§identifier: Option<i32>

Source identifier.

§name: Option<String>

Source name.

§evidence_number: Option<String>

Evidence number associated with the source.

§location: Option<String>

Source location.

§device_guid: Option<String>

Source device GUID.

§primary_device_guid: Option<String>

Primary source device GUID.

§drive_type: Option<char>

Source drive type code.

§manufacturer: Option<String>

Source manufacturer.

§model: Option<String>

Source model.

§serial_number: Option<String>

Source serial number.

§domain: Option<String>

Source domain.

§ip_address: Option<String>

Source IP address.

§mac_address: Option<String>

Source MAC address.

§size: Option<u64>

Source size in bytes.

§logical_offset: Option<i64>

Source logical offset.

§physical_offset: Option<i64>

Source physical offset.

§acquisition_time: Option<i64>

Source acquisition timestamp.

§md5: Option<String>

Source MD5 hash string.

§sha1: Option<String>

Source SHA1 hash string.

Implementations§

Source§

impl SingleFileSource

Source

pub fn identifier(&self) -> Option<i32>

Returns the source identifier.

Source

pub fn name(&self) -> Option<&str>

Returns the source name.

Source

pub fn evidence_number(&self) -> Option<&str>

Returns the evidence number associated with the source.

Source

pub fn location(&self) -> Option<&str>

Returns the source location.

Source

pub fn device_guid(&self) -> Option<&str>

Returns the source device GUID.

Source

pub fn primary_device_guid(&self) -> Option<&str>

Returns the primary source device GUID.

Source

pub fn manufacturer(&self) -> Option<&str>

Returns the source manufacturer.

Source

pub fn model(&self) -> Option<&str>

Returns the source model.

Source

pub fn serial_number(&self) -> Option<&str>

Returns the source serial number.

Source

pub fn domain(&self) -> Option<&str>

Returns the source domain.

Source

pub fn ip_address(&self) -> Option<&str>

Returns the source IP address.

Source

pub fn mac_address(&self) -> Option<&str>

Returns the source MAC address.

Source

pub fn size(&self) -> Option<u64>

Returns the source size in bytes.

Source

pub fn drive_type(&self) -> Option<char>

Returns the source drive type code.

Source

pub fn logical_offset(&self) -> Option<i64>

Returns the source logical offset.

Source

pub fn physical_offset(&self) -> Option<i64>

Returns the source physical offset.

Source

pub fn acquisition_time(&self) -> Option<i64>

Returns the source acquisition timestamp.

Source

pub fn md5_hash(&self) -> Option<&str>

Returns the source MD5 hash string.

Source

pub fn sha1_hash(&self) -> Option<&str>

Returns the source SHA1 hash string.

Trait Implementations§

Source§

impl Clone for SingleFileSource

Source§

fn clone(&self) -> SingleFileSource

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SingleFileSource

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SingleFileSource

Source§

fn default() -> SingleFileSource

Returns the “default value” for a type. Read more
Source§

impl Eq for SingleFileSource

Source§

impl PartialEq for SingleFileSource

Source§

fn eq(&self, other: &SingleFileSource) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SingleFileSource

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.