pub struct Upload<'a> {
pub path: &'a str,
pub file_body: Vec<u8>,
pub file_options: Option<FileOptions<'a>>,
}
Expand description
Configuration options for file uploads to Supabase Storage
Fields§
§path: &'a str
The file path, including the file name (format: folder/subfolder/filename.png) The bucket must already exist before attempting to upload.
file_body: Vec<u8>
The body of the file to be stored in the bucket
file_options: Option<FileOptions<'a>>
Optional file configuration settings
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Upload<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Upload<'a>
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
impl<'a> StructuralPartialEq for Upload<'a>
Auto Trait Implementations§
impl<'a> Freeze for Upload<'a>
impl<'a> RefUnwindSafe for Upload<'a>
impl<'a> Send for Upload<'a>
impl<'a> Sync for Upload<'a>
impl<'a> Unpin for Upload<'a>
impl<'a> UnwindSafe for Upload<'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