pub struct FetchDataPayload {
pub data: Option<Value>,
pub query: Option<String>,
pub filters: Option<Value>,
pub success: Option<bool>,
}Expand description
The result of a data fetch query using natural language.
Fields§
§data: Option<Value>The fetched data as a JSON object. The shape depends on the natural language query and the resolved GraphQL query. Null if the query returned no results.
query: Option<String>The GraphQL query that was generated from the natural language input and executed to produce the data. Useful for debugging or reusing the query directly.
filters: Option<Value>The filter variables that were generated and applied to the GraphQL query. Null if no filters were needed.
success: Option<bool>Whether the fetch operation was successful.
Trait Implementations§
Source§impl Clone for FetchDataPayload
impl Clone for FetchDataPayload
Source§fn clone(&self) -> FetchDataPayload
fn clone(&self) -> FetchDataPayload
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 FetchDataPayload
impl Debug for FetchDataPayload
Source§impl Default for FetchDataPayload
impl Default for FetchDataPayload
Source§fn default() -> FetchDataPayload
fn default() -> FetchDataPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FetchDataPayloadwhere
FetchDataPayload: Default,
impl<'de> Deserialize<'de> for FetchDataPayloadwhere
FetchDataPayload: Default,
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
Source§impl GraphQLFields for FetchDataPayload
impl GraphQLFields for FetchDataPayload
Auto Trait Implementations§
impl Freeze for FetchDataPayload
impl RefUnwindSafe for FetchDataPayload
impl Send for FetchDataPayload
impl Sync for FetchDataPayload
impl Unpin for FetchDataPayload
impl UnsafeUnpin for FetchDataPayload
impl UnwindSafe for FetchDataPayload
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