[][src]Struct toql_core::sql_mapper::MapperOptions

pub struct MapperOptions { /* fields omitted */ }

Options for a mapped field.

Methods

impl MapperOptions[src]

pub fn new() -> Self[src]

Create new mapper options

pub fn select_always(self, always_selected: bool) -> Self[src]

Field is always selected, regardless of the query

pub fn count_filter(self, count_filter: bool) -> Self[src]

Any filter on the field is considered when creating a count query. Typically applied to fields that represent permissions and foreign keys. Assumme a user wants to see all books. You will restrict the user query with a permission filter, so that the user sees all of his books. The count query must also use the filter.

pub fn count_select(self, count_select: bool) -> Self[src]

pub fn ignore_wildcard(self, ignore_wildcard: bool) -> Self[src]

pub fn restrict_roles(self, roles: BTreeSet<String>) -> Self[src]

Trait Implementations

impl Debug for MapperOptions[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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