[][src]Enum birdseed::Birdseed

pub enum Birdseed {
    Feed {
        row_count: u32,
    },
    Setup,
    Migrate {
        db: String,
    },
    Rebuild {
        db: String,
    },
    Clear,
}

DEFINED ERRORS You can use birdseed to seed a libellis db with junk data!

Variants

Feed

Seeds random data into all tables

Fields of Feed

row_count: u32

How many rows to inject

Setup

Builds both libellis main and test databases and runs migrations

Migrate

Builds both libellis main and test databases and runs migrations

Fields of Migrate

db: String

Which database to run migrations on, main, test, or all

Rebuild

Rebuilds all tables per most recent schema (embedded in binary)

Fields of Rebuild

db: String

Which database to run rebuild on, main, test, or all

Clear

Clears all tables in libellis database

Trait Implementations

impl Debug for Birdseed[src]

impl StructOpt for Birdseed[src]

fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for Birdseed

impl Sync for Birdseed

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> Erased for T