Struct FileInfo

Source
pub struct FileInfo {
Show 23 fields pub block_ids: Vec<i64>, pub block_size_bytes: i64, pub cacheable: bool, pub completed: bool, pub creation_time_ms: i64, pub file_block_infos: Vec<FileBlockInfo>, pub file_id: i64, pub folder: bool, pub group: String, pub in_memory_percentage: i32, pub last_modification_time_ms: i64, pub length: i64, pub name: String, pub path: String, pub persisted: bool, pub persistence_state: String, pub pinned: bool, pub mode: i32, pub mount_point: bool, pub owner: String, pub ttl: i64, pub ttl_action: String, pub ufs_path: String,
}
Expand description

FileInfo represents a file’s information.

Fields§

§block_ids: Vec<i64>

BlockIds holds the block ids.

§block_size_bytes: i64

BlockSizeBytes is the block size (in bytes).

§cacheable: bool

Cacheable determines whether the file is cacheable.

§completed: bool

Completed determines whether the file is completed.

§creation_time_ms: i64

CreationTimesMs is the creation time (in milliseconds).

§file_block_infos: Vec<FileBlockInfo>

FileBlockInfos holds the file block information.

§file_id: i64

FileID is the file id.

§folder: bool

Folder determines whether the file is a folder.

§group: String

Group is the group.

§in_memory_percentage: i32

InMemoryPercentage represents the in-memory percentage.

§last_modification_time_ms: i64

LastModificationTimeMs is the last modification time (in milliseconds).

§length: i64

Length is the file length.

§name: String

Name is the file name.

§path: String

Path is the file path.

§persisted: bool

Persisted determines whether file is persisted.

§persistence_state: String

PersistenceState represents the persistence state.

§pinned: bool

Pinned determines whether the file is pinned.

§mode: i32

Mode is the access mode.

§mount_point: bool

MountPoint determines whether the file is a mount point.

§owner: String

Owner is the owner.

§ttl: i64

TTL is the time-to-live window.

§ttl_action: String

TTLAction si the time-to-live action.

§ufs_path: String

UfsPath is the UFS path.

Trait Implementations§

Source§

impl Debug for FileInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FileInfo

Source§

fn default() -> FileInfo

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FileInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for FileInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,