pub struct StorageApiErrorResponse {
pub error: Option<String>,
pub message: Option<String>,
pub status_code: Option<String>,
}Expand description
Error response format from the Supabase Storage API.
Fields§
§error: Option<String>§message: Option<String>§status_code: Option<String>Implementations§
Source§impl StorageApiErrorResponse
impl StorageApiErrorResponse
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 StorageApiErrorResponse
impl Clone for StorageApiErrorResponse
Source§fn clone(&self) -> StorageApiErrorResponse
fn clone(&self) -> StorageApiErrorResponse
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 StorageApiErrorResponse
impl Debug for StorageApiErrorResponse
Source§impl<'de> Deserialize<'de> for StorageApiErrorResponse
impl<'de> Deserialize<'de> for StorageApiErrorResponse
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 StorageApiErrorResponse
impl RefUnwindSafe for StorageApiErrorResponse
impl Send for StorageApiErrorResponse
impl Sync for StorageApiErrorResponse
impl Unpin for StorageApiErrorResponse
impl UnsafeUnpin for StorageApiErrorResponse
impl UnwindSafe for StorageApiErrorResponse
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