pub struct ParseCloud<'a> { /* private fields */ }
Expand description
Handler for Parse Cloud Function operations.
Implementations§
Source§impl<'a> ParseCloud<'a>
impl<'a> ParseCloud<'a>
Sourcepub async fn run<P, R>(
&self,
function_name: &str,
params: &P,
) -> Result<R, ParseError>
pub async fn run<P, R>( &self, function_name: &str, params: &P, ) -> Result<R, ParseError>
Runs a Parse Cloud Function.
§Arguments
function_name
: The name of the cloud function to execute.params
: The parameters to pass to the cloud function. This must be a type that can be serialized into JSON (e.g.,serde_json::Value
, a struct, a map).
§Returns
A Result
containing the deserialized result
field from the cloud function’s
response, or a ParseError
if the operation fails.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParseCloud<'a>
impl<'a> !RefUnwindSafe for ParseCloud<'a>
impl<'a> Send for ParseCloud<'a>
impl<'a> Sync for ParseCloud<'a>
impl<'a> Unpin for ParseCloud<'a>
impl<'a> !UnwindSafe for ParseCloud<'a>
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