pub struct PlanResult<T> {
pub data: Option<T>,
pub usage_reporting: UsageReporting,
pub errors: Option<Vec<PlanError>>,
}Expand description
The result of a router bridge plan_worker invocation
Fields§
§data: Option<T>The data if the query was successfully run
usage_reporting: UsageReportingUsage reporting related data such as the operation signature and referenced fields
errors: Option<Vec<PlanError>>The errors if the query failed
Implementations§
Source§impl<T> PlanResult<T>
impl<T> PlanResult<T>
Sourcepub fn into_result(self) -> Result<PlanSuccess<T>, PlanErrors>
pub fn into_result(self) -> Result<PlanSuccess<T>, PlanErrors>
Turn a BridgeResult into an actual Result
Trait Implementations§
Source§impl<T: Debug> Debug for PlanResult<T>
impl<T: Debug> Debug for PlanResult<T>
Source§impl<'de, T> Deserialize<'de> for PlanResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PlanResult<T>where
T: Deserialize<'de>,
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<T> Freeze for PlanResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for PlanResult<T>where
T: RefUnwindSafe,
impl<T> Send for PlanResult<T>where
T: Send,
impl<T> Sync for PlanResult<T>where
T: Sync,
impl<T> Unpin for PlanResult<T>where
T: Unpin,
impl<T> UnwindSafe for PlanResult<T>where
T: UnwindSafe,
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