Enum pyoxidizerlib::environment::PyOxidizerSource[][src]

pub enum PyOxidizerSource {
    LocalPath {
        path: PathBuf,
    },
    GitUrl {
        url: String,
        commit: Option<String>,
        tag: Option<String>,
    },
}

Describes the location of the PyOxidizer source files.

Variants

LocalPath

A local filesystem path.

Show fields

Fields of LocalPath

path: PathBuf
GitUrl

A Git repository somewhere. Defined by a Git remote URL and a commit string.

Show fields

Fields of GitUrl

url: Stringcommit: Option<String>tag: Option<String>

Implementations

impl PyOxidizerSource[src]

pub fn as_pyembed_location(&self) -> PyembedLocation[src]

Determine the location of the pyembed crate given a run-time environment.

If running from a PyOxidizer Git repository, we reference the pyembed crate within the PyOxidizer Git repository. Otherwise we use the pyembed crate from the package registry.

There is room to reference a Git repository+commit. But this isn’t implemented yet.

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

Obtain a string to be used as the long form version info for the executable.

Trait Implementations

impl Clone for PyOxidizerSource[src]

impl Debug for PyOxidizerSource[src]

impl Default for PyOxidizerSource[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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,