Struct aliyun_oss_rust_sdk::request::RequestBuilder
source · 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 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 copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync 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