pub struct FunctionsApiErrorResponse {
pub error: Option<String>,
pub message: Option<String>,
}Expand description
Error response format from Supabase Edge Functions.
Fields§
§error: Option<String>§message: Option<String>Implementations§
Source§impl FunctionsApiErrorResponse
impl FunctionsApiErrorResponse
Sourcepub fn error_message(&self) -> String
pub fn error_message(&self) -> String
Extract the most informative error message from the response.
Trait Implementations§
Source§impl Clone for FunctionsApiErrorResponse
impl Clone for FunctionsApiErrorResponse
Source§fn clone(&self) -> FunctionsApiErrorResponse
fn clone(&self) -> FunctionsApiErrorResponse
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 FunctionsApiErrorResponse
impl Debug for FunctionsApiErrorResponse
Source§impl<'de> Deserialize<'de> for FunctionsApiErrorResponse
impl<'de> Deserialize<'de> for FunctionsApiErrorResponse
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 FunctionsApiErrorResponse
impl RefUnwindSafe for FunctionsApiErrorResponse
impl Send for FunctionsApiErrorResponse
impl Sync for FunctionsApiErrorResponse
impl Unpin for FunctionsApiErrorResponse
impl UnsafeUnpin for FunctionsApiErrorResponse
impl UnwindSafe for FunctionsApiErrorResponse
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