[][src]Struct grapl_graph_descriptions::graph_description::File

pub struct File {
    pub node_key: String,
    pub asset_id: Option<String>,
    pub hostname: Option<String>,
    pub state: u32,
    pub created_timestamp: u64,
    pub deleted_timestamp: u64,
    pub last_seen_timestamp: u64,
    pub file_name: String,
    pub file_path: String,
    pub file_extension: String,
    pub file_mime_type: String,
    pub file_size: u64,
    pub file_version: String,
    pub file_description: String,
    pub file_product: String,
    pub file_company: String,
    pub file_directory: String,
    pub file_inode: u64,
    pub file_hard_links: u64,
    pub md5_hash: String,
    pub sha1_hash: String,
    pub sha256_hash: String,
}

Fields

node_key: Stringasset_id: Option<String>hostname: Option<String>state: u32

1 = Created, 2 = Deleted, 3 = Referenced

created_timestamp: u64deleted_timestamp: u64last_seen_timestamp: u64file_name: Stringfile_path: Stringfile_extension: Stringfile_mime_type: Stringfile_size: u64file_version: Stringfile_description: Stringfile_product: Stringfile_company: Stringfile_directory: Stringfile_inode: u64file_hard_links: u64md5_hash: Stringsha1_hash: Stringsha256_hash: String

Implementations

impl File[src]

pub fn new(
    asset_id: impl Into<Option<String>>,
    hostname: impl Into<Option<String>>,
    state: FileState,
    timestamp: u64,
    file_name: String,
    file_path: String,
    file_extension: String,
    file_mime_type: String,
    file_size: u64,
    file_version: String,
    file_description: String,
    file_product: String,
    file_company: String,
    file_directory: String,
    file_inode: u64,
    file_hard_links: u64,
    md5_hash: String,
    sha1_hash: String,
    sha256_hash: String
) -> File
[src]

pub fn into_json(self) -> Value[src]

pub fn timestamp(&self) -> u64[src]

Trait Implementations

impl Clone for File[src]

impl Debug for File[src]

impl Default for File[src]

impl<'de> Deserialize<'de> for File[src]

impl Eq for File[src]

impl From<File> for Node[src]

impl Message for File[src]

impl NodeT for File[src]

impl PartialEq<File> for File[src]

impl Serialize for File[src]

impl StructuralEq for File[src]

impl StructuralPartialEq for File[src]

Auto Trait Implementations

impl RefUnwindSafe for File

impl Send for File

impl Sync for File

impl Unpin for File

impl UnwindSafe for File

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,