pub struct OcsfFile {
pub path: Option<String>,
pub name: Option<String>,
pub uid: Option<String>,
pub type_id: Option<u8>,
pub size: Option<u64>,
pub hashes: Option<Vec<FileHash>>,
}Expand description
OCSF File object.
Fields§
§path: Option<String>Full file path.
name: Option<String>File name (basename).
uid: Option<String>File unique identifier.
type_id: Option<u8>OCSF file type ID (1=Regular, 2=Folder, 3=Character, 4=Block, 5=FIFO, 6=Socket, 7=Symlink).
size: Option<u64>File size in bytes.
hashes: Option<Vec<FileHash>>File hashes.
Implementations§
Source§impl OcsfFile
impl OcsfFile
Sourcepub fn with_name_from_path(self) -> Self
pub fn with_name_from_path(self) -> Self
Derive the file name from the path if not explicitly set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OcsfFile
impl<'de> Deserialize<'de> for OcsfFile
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
impl StructuralPartialEq for OcsfFile
Auto Trait Implementations§
impl Freeze for OcsfFile
impl RefUnwindSafe for OcsfFile
impl Send for OcsfFile
impl Sync for OcsfFile
impl Unpin for OcsfFile
impl UnsafeUnpin for OcsfFile
impl UnwindSafe for OcsfFile
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