pub struct TreeQuerySource<Id> {
pub user_sql: &'static str,
pub order_by_cols: &'static [&'static str],
pub n_user_args: usize,
pub decode: fn(&Row) -> Result<GenericEvent<Id>, Error>,
}Expand description
The root user query plus the bits needed to fold it into the tree query.
Fields§
§user_sql: &'static str§order_by_cols: &'static [&'static str]§n_user_args: usize§decode: fn(&Row) -> Result<GenericEvent<Id>, Error>Auto Trait Implementations§
impl<Id> Freeze for TreeQuerySource<Id>
impl<Id> RefUnwindSafe for TreeQuerySource<Id>
impl<Id> Send for TreeQuerySource<Id>
impl<Id> Sync for TreeQuerySource<Id>
impl<Id> Unpin for TreeQuerySource<Id>
impl<Id> UnsafeUnpin for TreeQuerySource<Id>
impl<Id> UnwindSafe for TreeQuerySource<Id>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more