[][src]Struct lorry::Program

pub struct Program { /* fields omitted */ }

The heart of your spec

Implementations

impl Program[src]

pub fn new() -> Program[src]

Creates a new program struct.

All values are blank

pub fn author(self, author: &'static str) -> Self[src]

Sets the author

It is required

pub fn version(self, version: &'static str) -> Self[src]

Sets the version

It is required

pub fn check(&self)[src]

Checks the package for invalid config

pub fn name(self, name: &'static str) -> Self[src]

Adds a name propety under the package section

Names are required

pub fn dependencie(self, name: &'static str, version: &'static str) -> Self[src]

Adds a dependencie

pub fn gen(self)[src]

Generates cargo toml.

Also runs the check function

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