pub struct QueryTypeInfo {
pub name: String,
pub description: String,
pub required_params: Vec<String>,
pub optional_params: Vec<String>,
pub example: Option<Value>,
}Expand description
Information about a supported query type.
Fields§
§name: StringQuery type name.
description: StringDescription.
required_params: Vec<String>Required parameters.
optional_params: Vec<String>Optional parameters.
example: Option<Value>Example usage.
Implementations§
Trait Implementations§
Source§impl Clone for QueryTypeInfo
impl Clone for QueryTypeInfo
Source§fn clone(&self) -> QueryTypeInfo
fn clone(&self) -> QueryTypeInfo
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 moreSource§impl Debug for QueryTypeInfo
impl Debug for QueryTypeInfo
Source§impl<'de> Deserialize<'de> for QueryTypeInfo
impl<'de> Deserialize<'de> for QueryTypeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueryTypeInfo
impl RefUnwindSafe for QueryTypeInfo
impl Send for QueryTypeInfo
impl Sync for QueryTypeInfo
impl Unpin for QueryTypeInfo
impl UnsafeUnpin for QueryTypeInfo
impl UnwindSafe for QueryTypeInfo
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