[][src]Struct lorry::Program

pub struct Program { /* fields omitted */ }

The heart of your spec

Implementations

impl Program[src]

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

Adds a license

Required but defaults to MIT

pub fn new() -> Program[src]

Creates a new program struct.

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

Adds a readme path

OPTIONAL

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

Adds a documentation path

OPTIONAL

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

Adds a readme path

OPTIONAL

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

Edition

Specifies the rust edition It is required but defaults to rust 2018

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

Adds an 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 repo(self, repopath: &'static str) -> Self[src]

Sets the repository Optional

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.