# FileObjectStoreUploader

## pub struct FileObjectStoreUploader

## Implementations

### impl FileObjectStoreUploader

#### pub fn new(upload_client: AsyncUploadServiceClient<Client>, ingest_client: AsyncIngestServiceClient<Client>, http_client: Client, handle: Handle, opts: UploaderOpts) -> Self

#### pub async fn initiate_upload(&self, token: &BearerToken, file_name: &str, workspace_rid: Option<WorkspaceRid>) -> Result<InitiateMultipartUploadResponse, UploaderError>

#### pub async fn upload_parts<R>(&self, token: &BearerToken, reader: R, key: &str, upload_id: &str) -> Result<CompleteMultipartUploadResponse, UploaderError> where R: Read + Send + 'static

#### pub async fn upload_small_file(&self, token: &BearerToken, file_name: &str, size_bytes: i64, workspace_rid: Option<WorkspaceRid>, file: File) -> Result<String, UploaderError>

#### pub async fn upload<R>(&self, token: &BearerToken, reader: R, file_name: impl Into<&str>, workspace_rid: Option<WorkspaceRid>) -> Result<String, UploaderError> where R: Read + Send + 'static

#### pub async fn ingest_avro(&self, token: &BearerToken, s3_path: &str, data_source_rid: ResourceIdentifier) -> Result<IngestResponse, UploaderError>

## Trait implementations

**Derived**: [`Clone`](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html)

**Auto traits**: [`Send`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html), [`Sync`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Sync.html), [`Unpin`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Unpin.html), [`!UnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.UnwindSafe.html), [`!RefUnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.RefUnwindSafe.html)
