pub struct QueryItem {
pub name: Ident,
pub params: Vec<CommandParam>,
pub result: TypeRef,
pub result_ty: Type,
pub doc: String,
pub errors: Vec<String>,
pub reads: Vec<Ident>,
pub span: Span,
}Expand description
A read-only query: fn search(&self, text: String, answer: Answer<Vec<Item>>);
Fields§
§name: Ident§params: Vec<CommandParam>§result: TypeRefT of the final Answer<T> parameter.
result_ty: Type§doc: String§errors: Vec<String>§reads: Vec<Ident>State fields the answer depends on, from #[reads(…)].
span: SpanTrait Implementations§
Auto Trait Implementations§
impl !Send for QueryItem
impl !Sync for QueryItem
impl Freeze for QueryItem
impl RefUnwindSafe for QueryItem
impl Unpin for QueryItem
impl UnsafeUnpin for QueryItem
impl UnwindSafe for QueryItem
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