[−][src]Struct grapl_graph_descriptions::graph_description::File
Fields
node_key: String
asset_id: Option<String>
hostname: Option<String>
state: u32
1 = Created, 2 = Deleted, 3 = Referenced
created_timestamp: u64
deleted_timestamp: u64
last_seen_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
Methods
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]
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
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for File
[src]
impl From<File> for Node
[src]
impl Message for File
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(&mut self, buf: &mut B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
impl NodeT for File
[src]
fn get_asset_id(&self) -> Option<&str>
[src]
fn set_asset_id(&mut self, asset_id: impl Into<String>)
[src]
fn get_node_key(&self) -> &str
[src]
fn set_node_key(&mut self, node_key: impl Into<String>)
[src]
fn merge(&mut self, other: &Self) -> bool
[src]
fn merge_into(&mut self, other: Self) -> bool
[src]
fn clone_asset_id(&self) -> Option<String>
[src]
fn clone_node_key(&self) -> String
[src]
impl PartialEq<File> for File
[src]
impl Serialize for File
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,