[][src]Struct origen::commands::proj::bom::BOM

pub struct BOM {
    pub meta: Meta,
    pub files: Vec<PathBuf>,
    pub packages: IndexMap<String, Package>,
    pub links: IndexMap<String, String>,
    pub groups: IndexMap<String, Group>,
}

Fields

meta: Metafiles: Vec<PathBuf>packages: IndexMap<String, Package>links: IndexMap<String, String>groups: IndexMap<String, Group>

Implementations

impl BOM[src]

pub fn for_dir(dir: &Path) -> BOM[src]

pub fn resolve_ids(&self, ids: Vec<&str>) -> Result<Vec<String>>[src]

Returns the package IDs matching the given package or group IDs. An error will be returned if one of the given IDs does not match a known package or group.

fn merge(&mut self, bom: BOM, source: &Path)[src]

fn apply_group_versions(&mut self)[src]

Applies the version from a group to any of its child packages that doesn't have one

fn copy_group_packages(&mut self, bom: &BOM)[src]

Child BOMs are not allowed to redefine what packages are in a group, this is used to copy the existing definitions from a parent BOM. It is done separately from merging to support the version resolution flow.

fn validate(&self)[src]

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

Returns true if the BOM belongs to a workspace

pub fn root(&self) -> &Path[src]

Returns an absolute path to the workspace top-level directory

Trait Implementations

impl Debug for BOM[src]

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

impl Display for BOM[src]

impl Serialize for BOM[src]

Auto Trait Implementations

impl RefUnwindSafe for BOM

impl Send for BOM

impl Sync for BOM

impl Unpin for BOM

impl UnwindSafe for BOM

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