pub struct ViewDefinition {
pub name: &'static str,
pub description: &'static str,
pub definition: &'static str,
pub columns: &'static [&'static str],
pub base_tables: &'static [&'static str],
pub usage_hints: &'static [&'static str],
}Expand description
A predefined view definition
Fields§
§name: &'static strView name (e.g., “conversation_view”)
description: &'static strHuman-readable description
definition: &'static strSochQL definition (SELECT statement)
columns: &'static [&'static str]Output columns
base_tables: &'static [&'static str]Base table(s) this view queries
usage_hints: &'static [&'static str]Usage hints for LLMs
Trait Implementations§
Source§impl Clone for ViewDefinition
impl Clone for ViewDefinition
Source§fn clone(&self) -> ViewDefinition
fn clone(&self) -> ViewDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ViewDefinition
impl RefUnwindSafe for ViewDefinition
impl Send for ViewDefinition
impl Sync for ViewDefinition
impl Unpin for ViewDefinition
impl UnwindSafe for ViewDefinition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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