pub struct RequestBuilder {
pub cdn: Option<String>,
pub https: bool,
pub method: RequestType,
pub expire: Seconds,
pub headers: HashMap<String, String>,
pub parameters: HashMap<String, String>,
pub content_type: Option<String>,
pub content_md5: Option<String>,
pub oss_headers: HashMap<String, String>,
}
Fields§
§cdn: Option<String>
§https: bool
§method: RequestType
§expire: Seconds
§headers: HashMap<String, String>
§parameters: HashMap<String, String>
§content_type: Option<String>
§content_md5: Option<String>
§oss_headers: HashMap<String, String>
Implementations§
Source§impl RequestBuilder
impl RequestBuilder
pub fn new() -> Self
pub fn with_http(self) -> Self
pub fn with_cdn<S: AsRef<str>>(self, cdn: S) -> Self
pub fn with_content_type<S: AsRef<str>>(self, content_type: S) -> Self
pub fn with_expire(self, expire: Seconds) -> Self
pub fn response_content_disposition<S: AsRef<str>>(self, file_name: S) -> Self
pub fn oss_signature_version2(self) -> Self
pub fn response_content_encoding<S: AsRef<String>>(self, encoding: S) -> Self
pub fn oss_download_speed_limit<S: Into<i32>>(self, speed: S) -> Self
pub fn oss_download_allow_ip<IP, S>(self, ip: IP, mask: S) -> Self
pub fn oss_ac_forward_allow(self) -> Self
pub fn oss_header_put<S: AsRef<str>>(self, key: S, value: S) -> Self
pub fn parameters_put<S: AsRef<str>>(self, key: S, value: S) -> Self
Trait Implementations§
Source§impl Clone for RequestBuilder
impl Clone for RequestBuilder
Source§fn clone(&self) -> RequestBuilder
fn clone(&self) -> RequestBuilder
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 RequestBuilder
impl Debug for RequestBuilder
Source§impl Default for RequestBuilder
impl Default for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
Auto Trait Implementations§
impl Freeze for RequestBuilder
impl RefUnwindSafe for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
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