pub struct FileClient<'a> { /* private fields */ }Implementations§
Source§impl<'a> FileClient<'a>
impl<'a> FileClient<'a>
pub fn new(mistral_client: &'a MistralClient) -> Self
pub async fn upload_file( &self, file_data: Vec<u8>, ) -> Result<FileData, MistralError>
pub async fn get_signed_url( &self, file_id: &str, ) -> Result<SignedUrl, MistralError>
Auto Trait Implementations§
impl<'a> Freeze for FileClient<'a>
impl<'a> !RefUnwindSafe for FileClient<'a>
impl<'a> Send for FileClient<'a>
impl<'a> Sync for FileClient<'a>
impl<'a> Unpin for FileClient<'a>
impl<'a> UnsafeUnpin for FileClient<'a>
impl<'a> !UnwindSafe for FileClient<'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