[][src]Struct grapl_graph_descriptions::graph_description::FileDescription

pub struct FileDescription {
    pub node_key: String,
    pub asset_id: Option<String>,
    pub hostname: Option<String>,
    pub host_ip: 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>host_ip: 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

Methods

impl FileDescription[src]

pub fn asset_id(&self) -> &str[src]

impl FileDescription[src]

pub fn new(
    asset_id: impl Into<Option<String>>,
    hostname: impl Into<Option<String>>,
    host_ip: 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
) -> FileDescription
[src]

pub fn get_key(&self) -> &str[src]

pub fn set_key(&mut self, key: String)[src]

pub fn set_asset_id(&mut self, asset_id: String)[src]

pub fn get_asset_id(&self) -> Option<&String>[src]

pub fn clone_key(&self) -> String[src]

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

pub fn merge(&mut self, other: &Self)[src]

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

Trait Implementations

impl From<FileDescription> for NodeDescription[src]

impl PartialEq<FileDescription> for FileDescription[src]

impl Clone for FileDescription[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for FileDescription[src]

impl Eq for FileDescription[src]

impl Debug for FileDescription[src]

impl Message for FileDescription[src]

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
    B: BufMut
[src]

Encodes the message to a buffer. Read more

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
    B: BufMut
[src]

Encodes the message with a length-delimiter to a buffer. Read more

fn decode<B>(buf: B) -> Result<Self, DecodeError> where
    B: IntoBuf,
    Self: Default
[src]

Decodes an instance of the message from a buffer. Read more

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
    B: IntoBuf,
    Self: Default
[src]

Decodes a length-delimited instance of the message from the buffer.

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
    B: IntoBuf
[src]

Decodes an instance of the message from a buffer, and merges it into self. Read more

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
    B: IntoBuf
[src]

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

impl Serialize for FileDescription[src]

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

Auto Trait Implementations

Blanket Implementations

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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