pub struct FileBuilder { /* private fields */ }
Expand description
Builder for File
.
Implementations§
Source§impl FileBuilder
impl FileBuilder
pub fn node_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn asset_id<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn hostname<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn state<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn state<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
1 = Created, 2 = Deleted, 3 = Referenced
pub fn created_timestamp<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn deleted_timestamp<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn last_seen_timestamp<VALUE: Into<u64>>( &mut self, value: VALUE, ) -> &mut Self
pub fn file_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_extension<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_mime_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_size<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn file_version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_description<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn file_product<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_company<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_directory<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn file_inode<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn file_hard_links<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn md5_hash<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sha1_hash<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sha256_hash<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Trait Implementations§
Source§impl Clone for FileBuilder
impl Clone for FileBuilder
Source§fn clone(&self) -> FileBuilder
fn clone(&self) -> FileBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for FileBuilder
impl Default for FileBuilder
Source§fn default() -> FileBuilder
fn default() -> FileBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileBuilder
impl RefUnwindSafe for FileBuilder
impl Send for FileBuilder
impl Sync for FileBuilder
impl Unpin for FileBuilder
impl UnwindSafe for FileBuilder
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