[−][src]Struct toql::sql_mapper::MapperOptions
Options for a mapped field.
Methods
impl MapperOptions
[src]
pub fn new() -> MapperOptions
[src]
Create new mapper options
pub fn select_always(self, always_selected: bool) -> MapperOptions
[src]
Field is always selected, regardless of the query
pub fn count_filter(self, count_filter: bool) -> MapperOptions
[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) -> MapperOptions
[src]
pub fn ignore_wildcard(self, ignore_wildcard: bool) -> MapperOptions
[src]
pub fn restrict_roles(self, roles: BTreeSet<String>) -> MapperOptions
[src]
Trait Implementations
Auto Trait Implementations
impl Send for MapperOptions
impl Sync for MapperOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,