pub struct QueryDescriptor {
pub name: String,
pub input: Vec<InputField>,
}Expand description
A query descriptor holds the contract for a single named query. It describes what inputs the query accepts, derived from the manifest. It does not implement execution.
Fields§
§name: String§input: Vec<InputField>Implementations§
Source§impl QueryDescriptor
impl QueryDescriptor
pub fn from_manifest(mq: &ManifestQuery) -> Self
Trait Implementations§
Source§impl Clone for QueryDescriptor
impl Clone for QueryDescriptor
Source§fn clone(&self) -> QueryDescriptor
fn clone(&self) -> QueryDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryDescriptor
impl Debug for QueryDescriptor
Source§impl PartialEq for QueryDescriptor
impl PartialEq for QueryDescriptor
Source§fn eq(&self, other: &QueryDescriptor) -> bool
fn eq(&self, other: &QueryDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for QueryDescriptor
impl StructuralPartialEq for QueryDescriptor
Auto Trait Implementations§
impl Freeze for QueryDescriptor
impl RefUnwindSafe for QueryDescriptor
impl Send for QueryDescriptor
impl Sync for QueryDescriptor
impl Unpin for QueryDescriptor
impl UnsafeUnpin for QueryDescriptor
impl UnwindSafe for QueryDescriptor
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