Skip to main content

FullTextSearchable

Trait FullTextSearchable 

Source
pub trait FullTextSearchable: Sized {
    type FullTextSearchField: Copy + Eq;
    type FullTextSearchConfig: FullTextSearchConfig + Send + Sync;
    type FullTextSearchJoin: Copy + Eq;

    // Required methods
    fn write_tsvector<W>(
        w: &mut W,
        base_alias: &str,
        joins: Option<&[JoinPath]>,
        config: &Self::FullTextSearchConfig,
    )
       where W: SqlWrite;
    fn write_tsquery<W>(w: &mut W, config: &Self::FullTextSearchConfig)
       where W: SqlWrite;
    fn write_rank<W>(
        w: &mut W,
        base_alias: &str,
        joins: Option<&[JoinPath]>,
        config: &Self::FullTextSearchConfig,
    )
       where W: SqlWrite;
}

Required Associated Types§

Required Methods§

Source

fn write_tsvector<W>( w: &mut W, base_alias: &str, joins: Option<&[JoinPath]>, config: &Self::FullTextSearchConfig, )
where W: SqlWrite,

Source

fn write_tsquery<W>(w: &mut W, config: &Self::FullTextSearchConfig)
where W: SqlWrite,

Source

fn write_rank<W>( w: &mut W, base_alias: &str, joins: Option<&[JoinPath]>, config: &Self::FullTextSearchConfig, )
where W: SqlWrite,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§