import mime::Mime
This commit is contained in:
parent
a3ee97eaed
commit
7bbc1bbc19
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
use mime::Mime;
|
||||||
use reqwest::{Body, Client, StatusCode};
|
use reqwest::{Body, Client, StatusCode};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use std::{error::Error, fs::File};
|
use std::{error::Error, fs::File};
|
||||||
|
@ -34,7 +35,7 @@ pub trait AssetUploader<A: Into<Body> = File> {
|
||||||
github_token: &str,
|
github_token: &str,
|
||||||
github_repo: &str,
|
github_repo: &str,
|
||||||
release_id: usize,
|
release_id: usize,
|
||||||
mime: mime::Mime,
|
mime: Mime,
|
||||||
asset: A,
|
asset: A,
|
||||||
) -> Result<(), Box<dyn Error>>;
|
) -> Result<(), Box<dyn Error>>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue