[][src]Struct cortex::models::NewCorpus

pub struct NewCorpus {
    pub path: String,
    pub name: String,
    pub complex: bool,
    pub description: String,
}

Insertable Corpus struct

Fields

path: String

file system path to corpus root (a corpus is held in a single top-level directory)

name: String

a human-readable name for this corpus

complex: bool

are we using multiple files to represent a document entry? (if unsure, always use "true")

description: String

frontend-facing description of the corpus, maybe allow markdown here?

Trait Implementations

impl CortexInsertable for NewCorpus[src]

impl Default for NewCorpus[src]

impl<'insert> Insertable<table> for NewCorpus[src]

type Values = <(Option<Eq<path, String>>, Option<Eq<name, String>>, Option<Eq<complex, bool>>, Option<Eq<description, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert NewCorpus[src]

type Values = <(Option<Eq<path, &'insert String>>, Option<Eq<name, &'insert String>>, Option<Eq<complex, &'insert bool>>, Option<Eq<description, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> UndecoratedInsertRecord<table> for NewCorpus[src]

Auto Trait Implementations

impl RefUnwindSafe for NewCorpus

impl Send for NewCorpus

impl Sync for NewCorpus

impl Unpin for NewCorpus

impl UnwindSafe for NewCorpus

Blanket Implementations

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

impl<T, I> AsResult<T, I> for T where
    I: Input, 

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> IntoCollection<T> for T

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,