[][src]Struct python_packaging::resource::FileData

pub struct FileData {
    pub path: PathBuf,
    pub is_executable: bool,
    pub data: DataLocation,
}

Represents an arbitrary, unclassified file.

Fields

path: PathBuf

The path of the file being tracked.

Can be relative or absolute.

is_executable: bool

Whether the file should have the execute bit set.

data: DataLocation

The data in the file.

Implementations

impl FileData[src]

pub fn path_string(&self) -> String[src]

Convert the path to a String.

pub fn to_memory(&self) -> Result<Self>[src]

Trait Implementations

impl Clone for FileData[src]

impl Debug for FileData[src]

impl<'a> From<&'a FileData> for PythonResource<'a>[src]

impl<'a> From<FileData> for PythonResource<'a>[src]

impl PartialEq<FileData> for FileData[src]

impl StructuralPartialEq for FileData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.