pub struct FileNodeBuilder { /* private fields */ }
Implementations§
Source§impl FileNodeBuilder
impl FileNodeBuilder
pub fn asset_id(&mut self, asset_id: Option<String>) -> Self
pub fn hostname(&mut self, hostname: Option<String>) -> Self
pub fn state(&mut self, state: u32) -> Self
pub fn with_created_timestamp_ms(&mut self, timestamp: u64) -> Self
pub fn with_last_seen_timestamp_ms(&mut self, timestamp: u64) -> Self
pub fn with_deleted_timestamp_ms(&mut self, timestamp: u64) -> Self
pub fn file_name(&mut self, file_name: String) -> Self
pub fn file_path(&mut self, file_path: String) -> Self
pub fn file_extension(&mut self, file_extension: String) -> Self
pub fn file_mime_type(&mut self, file_mime_type: String) -> Self
pub fn file_size(&mut self, file_size: u64) -> Self
pub fn file_version(&mut self, file_version: String) -> Self
pub fn file_description(&mut self, file_description: String) -> Self
pub fn file_product(&mut self, file_product: String) -> Self
pub fn file_company(&mut self, file_company: String) -> Self
pub fn file_directory(&mut self, file_directory: String) -> Self
pub fn file_inode(&mut self, file_inode: u64) -> Self
pub fn file_hard_links(&mut self, file_hard_links: u64) -> Self
pub fn md5_hash(&mut self, md5_hash: String) -> Self
pub fn sha1_hash(&mut self, sha1_hash: String) -> Self
pub fn sha256_hash(&mut self, sha256_hash: String) -> Self
pub fn build(&self) -> PyResult<FileNode>
Trait Implementations§
Source§impl Clone for FileNodeBuilder
impl Clone for FileNodeBuilder
Source§fn clone(&self) -> FileNodeBuilder
fn clone(&self) -> FileNodeBuilder
Returns a copy 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 FileNodeBuilder
impl Default for FileNodeBuilder
Source§fn default() -> FileNodeBuilder
fn default() -> FileNodeBuilder
Returns the “default value” for a type. Read more
Source§impl IntoPy<PyObject> for FileNodeBuilder
impl IntoPy<PyObject> for FileNodeBuilder
Source§impl PyObjectAlloc for FileNodeBuilder
impl PyObjectAlloc for FileNodeBuilder
Source§impl PyTypeInfo for FileNodeBuilder
impl PyTypeInfo for FileNodeBuilder
Source§const DESCRIPTION: &'static str = "\u{0}"
const DESCRIPTION: &'static str = "\u{0}"
Class doc string
Source§type Type = FileNodeBuilder
type Type = FileNodeBuilder
Type of objects to store in PyObject struct
Source§unsafe fn type_object() -> &'static mut PyTypeObject
unsafe fn type_object() -> &'static mut PyTypeObject
PyTypeObject instance for this type, which might still need to
be initialized
Source§fn is_instance(object: &PyAny) -> bool
fn is_instance(object: &PyAny) -> bool
Check if
*mut ffi::PyObject
is instance of this typeSource§fn is_exact_instance(object: &PyAny) -> bool
fn is_exact_instance(object: &PyAny) -> bool
Check if
*mut ffi::PyObject
is exact instance of this typeAuto Trait Implementations§
impl Freeze for FileNodeBuilder
impl RefUnwindSafe for FileNodeBuilder
impl Send for FileNodeBuilder
impl Sync for FileNodeBuilder
impl Unpin for FileNodeBuilder
impl UnwindSafe for FileNodeBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PyMethodsProtocol for Twhere
T: PyMethodsInventoryDispatch,
impl<T> PyMethodsProtocol for Twhere
T: PyMethodsInventoryDispatch,
Source§fn py_methods() -> Vec<&'static PyMethodDefType>
fn py_methods() -> Vec<&'static PyMethodDefType>
Returns all methods that are defined for a class
Source§impl<'v, T> PyTryFrom<'v> for Twhere
T: PyTypeInfo,
impl<'v, T> PyTryFrom<'v> for Twhere
T: PyTypeInfo,
Source§fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError>
fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError>
Cast from a concrete Python object type to PyObject.
Source§fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError>
fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError>
Cast from a concrete Python object type to PyObject. With exact type check.
Source§fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError>
fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError>
Cast from a concrete Python object type to PyObject.
Source§fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError>
fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError>
Cast from a concrete Python object type to PyObject. With exact type check.
Source§unsafe fn try_from_unchecked<V>(value: V) -> &'v T
unsafe fn try_from_unchecked<V>(value: V) -> &'v T
Cast a PyAny to a specific type of PyObject. The caller must
have already verified the reference is for this type.
Source§impl<T> PyTypeCreate for Twhere
T: PyObjectAlloc + PyTypeObject,
impl<T> PyTypeCreate for Twhere
T: PyObjectAlloc + PyTypeObject,
Source§impl<T> PyTypeObject for T
impl<T> PyTypeObject for T
Source§fn init_type() -> NonNull<PyTypeObject>
fn init_type() -> NonNull<PyTypeObject>
This function must make sure that the corresponding type object gets
initialized exactly once and return it.
Source§fn type_object() -> Py<PyType>
fn type_object() -> Py<PyType>
Returns the safe abstraction over the type object from PyTypeObject::init_type