[][src]Struct origen::commands::proj::package::Package

pub struct Package {
    pub id: String,
    pub path: Option<PathBuf>,
    pub version: Option<String>,
    repo: Option<String>,
    repos: Option<Vec<String>>,
    copy: Option<PathBuf>,
    link: Option<PathBuf>,
    username: Option<String>,
}

Fields

id: Stringpath: Option<PathBuf>version: Option<String>repo: Option<String>repos: Option<Vec<String>>copy: Option<PathBuf>link: Option<PathBuf>username: Option<String>

Implementations

impl Package[src]

pub fn create(&self, workspace_dir: &Path) -> Result<()>[src]

Creates the package in the given workspace directory, will return an error if something goes wrong with the revision control populate operation

pub fn update(&self, workspace_dir: &Path, force: bool) -> Result<(bool, bool)>[src]

Updates the package in the given workspace directory, will return an error if something goes wrong with the underlying revision control checkout operation, or if the package dir resolved from the BOM does not exist

pub fn rc(&self, workspace_dir: &Path) -> Option<RevisionControl>[src]

Returns a revision control driver for the package, if applicable

fn all_repos(&self) -> Vec<&str>[src]

Consolidates the repo and repos fields into a single vector

pub fn path(&self, workspace_dir: &Path) -> PathBuf[src]

Returns a path to the package dir within the given workspace

fn create_from_copy(&self, dest: &Path, _force: bool) -> Result<bool>[src]

fn credentials(&self) -> Option<Credentials>[src]

pub fn to_string(&self, indent: usize) -> String[src]

pub fn merge(&mut self, p: &Package)[src]

pub fn validate(&self)[src]

pub fn has_repo(&self) -> bool[src]

Returns true if the package has a repo defined

fn has_no_source(&self) -> bool[src]

fn has_missing_version(&self) -> bool[src]

fn has_multiple_sources(&self) -> bool[src]

Trait Implementations

impl Clone for Package[src]

impl Debug for Package[src]

impl<'de> Deserialize<'de> for Package[src]

impl Display for Package[src]

impl PartialEq<Package> for Package[src]

impl Serialize for Package[src]

Auto Trait Implementations

impl RefUnwindSafe for Package

impl Send for Package

impl Sync for Package

impl Unpin for Package

impl UnwindSafe for Package

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> Conv for T

impl<T> Conv for T

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

impl<T> FmtForward for T

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

impl<T> FromPy<T> for T

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

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

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>,