Struct libcnb::data::launch::Launch[][src]

pub struct Launch {
    pub bom: Bom,
    pub labels: Vec<Label>,
    pub processes: Vec<Process>,
    pub slices: Vec<Slice>,
}

Fields

bom: Bomlabels: Vec<Label>processes: Vec<Process>slices: Vec<Slice>

Implementations

impl Launch[src]

Data Structure for the launch.toml file.

Examples

use libcnb::data::launch;
let mut launch_toml = launch::Launch::new();
let web = launch::Process::new("web", "bundle", vec!["exec", "ruby", "app.rb"],
false).unwrap();

launch_toml.processes.push(web);
assert!(toml::to_string(&launch_toml).is_ok());

pub fn new() -> Self[src]

Trait Implementations

impl Debug for Launch[src]

impl Serialize for Launch[src]

Auto Trait Implementations

impl RefUnwindSafe for Launch

impl Send for Launch

impl Sync for Launch

impl Unpin for Launch

impl UnwindSafe for Launch

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