Enum convex::base_client::FunctionResult
source · pub enum FunctionResult {
Value(Value),
ErrorMessage(String),
ConvexError(ConvexError),
}
Expand description
Result of a Convex function (query/mutation/action).
The function returns a Convex value or an error message string.
Variants§
Value(Value)
The Convex value returned on a successful run of a Convex function
ErrorMessage(String)
The error message of a Convex function run that does not complete successfully.
ConvexError(ConvexError)
The error payload of a Convex function run that doesn’t complete successfully, with an application-level error.
Trait Implementations§
source§impl Clone for FunctionResult
impl Clone for FunctionResult
source§fn clone(&self) -> FunctionResult
fn clone(&self) -> FunctionResult
Returns a copy 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 FunctionResult
impl Debug for FunctionResult
source§impl From<FunctionResult> for Result<Value, ErrorPayload<Value>>
impl From<FunctionResult> for Result<Value, ErrorPayload<Value>>
source§fn from(result: FunctionResult) -> Self
fn from(result: FunctionResult) -> Self
Converts to this type from the input type.
source§impl From<Result<Value, ErrorPayload<Value>>> for FunctionResult
impl From<Result<Value, ErrorPayload<Value>>> for FunctionResult
source§impl PartialEq for FunctionResult
impl PartialEq for FunctionResult
source§fn eq(&self, other: &FunctionResult) -> bool
fn eq(&self, other: &FunctionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FunctionResult
impl StructuralPartialEq for FunctionResult
Auto Trait Implementations§
impl RefUnwindSafe for FunctionResult
impl Send for FunctionResult
impl Sync for FunctionResult
impl Unpin for FunctionResult
impl UnwindSafe for FunctionResult
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.