[−][src]Struct grapl_graph_descriptions::graph_description::FileDescription
Fields
node_key: Stringasset_id: Option<String>hostname: Option<String>host_ip: Option<String>state: u321 = 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: StringMethods
impl FileDescription[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]
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
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]
fn from(t: FileDescription) -> Self[src]
impl Clone for FileDescription[src]
fn clone(&self) -> FileDescription[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for FileDescription[src]
fn default() -> FileDescription[src]
impl Eq for FileDescription[src]
impl PartialEq<FileDescription> for FileDescription[src]
fn eq(&self, other: &FileDescription) -> bool[src]
fn ne(&self, other: &FileDescription) -> bool[src]
impl Debug for FileDescription[src]
impl StructuralPartialEq for FileDescription[src]
impl StructuralEq for FileDescription[src]
impl Message for FileDescription[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 Serialize for FileDescription[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for FileDescription[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for FileDescription
impl Sync for FileDescription
impl Unpin for FileDescription
impl UnwindSafe for FileDescription
impl RefUnwindSafe for FileDescription
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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<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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,